diff options
author | Andreas Schneider <asn@samba.org> | 2013-02-18 17:32:28 +0100 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2013-02-22 16:36:12 +0100 |
commit | e50874606f235cf9d8cf159997b97fcb6ad74ce2 (patch) | |
tree | 993b763410c11f993d6d353be19d5f1a4692941f /librpc | |
parent | f4761c90fa0f2161e3d799b69d569cd2e38fe10c (diff) | |
download | samba-e50874606f235cf9d8cf159997b97fcb6ad74ce2.tar.gz samba-e50874606f235cf9d8cf159997b97fcb6ad74ce2.tar.bz2 samba-e50874606f235cf9d8cf159997b97fcb6ad74ce2.zip |
librpc: Add NULL check for ndr functions for epm bindings.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/rpc/binding.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index ce593490fe..49651e8796 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -425,7 +425,12 @@ static DATA_BLOB dcerpc_floor_pack_lhs_data(TALLOC_CTX *mem_ctx, const struct nd { DATA_BLOB blob; enum ndr_err_code ndr_err; - struct ndr_push *ndr = ndr_push_init_ctx(mem_ctx); + struct ndr_push *ndr; + + ndr = ndr_push_init_ctx(mem_ctx); + if (ndr == NULL) { + return data_blob_null; + } ndr->flags |= LIBNDR_FLAG_NOALIGN; |