s4:rpc_server: only use context within op_bind() hooks and dcesrv_interface_bind_...
[nivanova/samba-autobuild/.git] / source4 / rpc_server / samr / dcesrv_samr.c
index 921d2965d7ccc91249912c3840761663c2406c77..0ddbaae835d4230b147314c7c000248712950eea 100644 (file)
@@ -46,7 +46,8 @@
 static NTSTATUS dcesrv_interface_samr_bind(struct dcesrv_call_state *dce_call,
                                             const struct dcesrv_interface *iface)
 {
-       return dcesrv_interface_bind_reject_connect(dce_call, iface);
+       struct dcesrv_connection_context *context = dce_call->context;
+       return dcesrv_interface_bind_reject_connect(context, iface);
 }
 
 /* these query macros make samr_Query[User|Group|Alias]Info a bit easier to read */