git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52530f5
)
s4-libcli: Add null check for ndr functions in rap.
author
Andreas Schneider
<asn@samba.org>
Mon, 18 Feb 2013 16:26:14 +0000
(17:26 +0100)
committer
Alexander Bokovoy
<ab@samba.org>
Fri, 22 Feb 2013 15:36:12 +0000
(16:36 +0100)
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/libcli/rap/rap.c
patch
|
blob
|
history
diff --git
a/source4/libcli/rap/rap.c
b/source4/libcli/rap/rap.c
index 1eee811f7f8077545e55e649f5ffee708a9c9070..9f41e17d278705d693f0c1dabd0139a60a77d906 100644
(file)
--- a/
source4/libcli/rap/rap.c
+++ b/
source4/libcli/rap/rap.c
@@
-39,9
+39,17
@@
struct rap_call *new_rap_cli_call(TALLOC_CTX *mem_ctx, uint16_t callno)
call->rcv_paramlen = 4;
call->ndr_push_param = ndr_push_init_ctx(call);
+ if (call->ndr_push_param == NULL) {
+ talloc_free(call);
+ return NULL;
+ }
call->ndr_push_param->flags = RAPNDR_FLAGS;
call->ndr_push_data = ndr_push_init_ctx(call);
+ if (call->ndr_push_data == NULL) {
+ talloc_free(call);
+ return NULL;
+ }
call->ndr_push_data->flags = RAPNDR_FLAGS;
call->pull_mem_ctx = mem_ctx;