summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-07-05 10:23:56 +0200
committerVolker Lendecke <vl@samba.org>2009-07-05 23:50:12 +0200
commit880c286bc92db809553c5af2c4a26fe34d6a58dc (patch)
tree56fd1b4b8264207125c505b6e01ede46b989c5d3
parente77e21e0f14acf670b1fdc2411425223f03ed645 (diff)
downloadsamba-880c286bc92db809553c5af2c4a26fe34d6a58dc.tar.gz
samba-880c286bc92db809553c5af2c4a26fe34d6a58dc.tar.bz2
samba-880c286bc92db809553c5af2c4a26fe34d6a58dc.zip
Use null_ndr_syntax_id instead of zeroing null_interface manually
-rw-r--r--source3/rpc_server/srv_pipe.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index c94e59422e..341d8b3b48 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -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;
}