r25828: don't ignore errors
authorStefan Metzmacher <metze@samba.org>
Mon, 5 Nov 2007 05:58:57 +0000 (06:58 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:44:16 +0000 (05:44 +0100)
metze
(This used to be commit 2bd63ce9e53071dc81549e0f344a0e53737760b4)

source4/librpc/rpc/dcerpc_util.c

index 3e2fd9b09be7c9e66d51e83513b84d9914ad8786..aa65861c3fd075415a856ef9a20a05af50c030b9 100644 (file)
@@ -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);