diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-07-25 14:11:18 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-07-25 14:11:18 +1000 |
commit | 552fd06dedbef0fbf3ba5c78698cd286973c61aa (patch) | |
tree | 4b975bef6fa59b14256948d167f1d73f1e6a4ec9 /source4 | |
parent | 1f285560bc66ab703b8feacd5e110e79eae619de (diff) | |
download | samba-552fd06dedbef0fbf3ba5c78698cd286973c61aa.tar.gz samba-552fd06dedbef0fbf3ba5c78698cd286973c61aa.tar.bz2 samba-552fd06dedbef0fbf3ba5c78698cd286973c61aa.zip |
Make a new define to ensure the accoc_group_id we use is always in common.
(This used to be commit b62490e3e21b606b66e0737a403b0d170b64cddd)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/dcerpc_server.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c index ac36825acd..cb07f6e8ce 100644 --- a/source4/rpc_server/dcerpc_server.c +++ b/source4/rpc_server/dcerpc_server.c @@ -36,6 +36,8 @@ #include "libcli/security/security.h" #include "param/param.h" +#define SAMBA_ACCOC_GROUP 0x12345678 + extern const struct dcesrv_interface dcesrv_mgmt_interface; /* @@ -554,7 +556,7 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call) * assoc_group_id back to the clients */ if (call->pkt.u.bind.assoc_group_id != 0 && - call->pkt.u.bind.assoc_group_id != 0x12345678) { + call->pkt.u.bind.assoc_group_id != SAMBA_ACCOC_GROUP) { return dcesrv_bind_nak(call, 0); } @@ -629,7 +631,7 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call) pkt.u.bind_ack.max_xmit_frag = 0x2000; pkt.u.bind_ack.max_recv_frag = 0x2000; /* we need to send a non zero assoc_group_id here to make longhorn happy, it also matches samba3 */ - pkt.u.bind_ack.assoc_group_id = 0x12345678; + pkt.u.bind_ack.assoc_group_id = SAMBA_ACCOC_GROUP; 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); |