summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-12 09:51:44 +0100
committerMichael Adam <obnox@samba.org>2008-12-12 09:56:51 +0100
commit370cc9c776bcde683b9cc9704a781b093cf3bdaa (patch)
treea1eab6a9941434cecf31c2a51d31bacc3f24c03d /source4/rpc_server
parent3a45779f546ac0e7ca1871cdd2573bd84f952524 (diff)
downloadsamba-370cc9c776bcde683b9cc9704a781b093cf3bdaa.tar.gz
samba-370cc9c776bcde683b9cc9704a781b093cf3bdaa.tar.bz2
samba-370cc9c776bcde683b9cc9704a781b093cf3bdaa.zip
s4:fix segfault in rpc-server, when client binds to unsupported service.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/dcerpc_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index 2c218bdc8d..5f055ae342 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -648,7 +648,7 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
pkt.pfc_flags = DCERPC_PFC_FLAG_FIRST | DCERPC_PFC_FLAG_LAST | extra_flags;
pkt.u.bind_ack.max_xmit_frag = 0x2000;
pkt.u.bind_ack.max_recv_frag = 0x2000;
- pkt.u.bind_ack.assoc_group_id = call->context->assoc_group_id;
+ pkt.u.bind_ack.assoc_group_id = iface?call->context->assoc_group_id:0;
if (iface) {
/* FIXME: Use pipe name as specified by endpoint instead of interface name */
pkt.u.bind_ack.secondary_address = talloc_asprintf(call, "\\PIPE\\%s", iface->name);