diff options
-rw-r--r-- | source4/librpc/rpc/dcerpc_util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index 3e2fd9b09b..aa65861c3f 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -82,6 +82,9 @@ NTSTATUS ncacn_push_auth(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, if (auth_info) { status = ndr_push_dcerpc_auth(ndr, NDR_SCALARS|NDR_BUFFERS, auth_info); + if (!NT_STATUS_IS_OK(status)) { + return status; + } } *blob = ndr_push_blob(ndr); @@ -449,6 +452,10 @@ NTSTATUS dcerpc_floor_get_lhs_data(struct epm_floor *epm_floor, struct ndr_synta } status = ndr_pull_uint16(ndr, NDR_SCALARS, &if_version); + if (!NT_STATUS_IS_OK(status)) { + talloc_free(mem_ctx); + return status; + } syntax->if_version = if_version; talloc_free(mem_ctx); |