]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Use null_ndr_syntax_id instead of zeroing null_interface manually
authorVolker Lendecke <vl@samba.org>
Sun, 5 Jul 2009 08:23:56 +0000 (10:23 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 5 Jul 2009 21:50:12 +0000 (23:50 +0200)
source3/rpc_server/srv_pipe.c

index c94e59422e50e2230ed25dc7d59e9d74b373457c..341d8b3b48d9b8782dc21f0f5a8c4756c30e4f17 100644 (file)
@@ -1720,13 +1720,11 @@ bool api_pipe_bind_req(pipes_struct *p, prs_struct *rpc_in_p)
                        0x1, 0x0, 0x0,
                        &hdr_rb.rpc_context[0].transfer[0]);
        } else {
-               struct ndr_syntax_id null_interface;
-               ZERO_STRUCT(null_interface);
                /* Rejection reason: abstract syntax not supported */
                init_rpc_hdr_ba(&hdr_ba, RPC_MAX_PDU_FRAG_LEN,
                                        RPC_MAX_PDU_FRAG_LEN, assoc_gid,
                                        ack_pipe_name, 0x1, 0x2, 0x1,
-                                       &null_interface);
+                                       &null_ndr_syntax_id);
                p->pipe_bound = False;
        }
 
@@ -1910,13 +1908,11 @@ bool api_pipe_alter_context(pipes_struct *p, prs_struct *rpc_in_p)
                        0x1, 0x0, 0x0,
                        &hdr_rb.rpc_context[0].transfer[0]);
        } else {
-               struct ndr_syntax_id null_interface;
-               ZERO_STRUCT(null_interface);
                /* Rejection reason: abstract syntax not supported */
                init_rpc_hdr_ba(&hdr_ba, RPC_MAX_PDU_FRAG_LEN,
                                        RPC_MAX_PDU_FRAG_LEN, assoc_gid,
                                        ack_pipe_name, 0x1, 0x2, 0x1,
-                                       &null_interface);
+                                       &null_ndr_syntax_id);
                p->pipe_bound = False;
        }