s4:rpc_server: only use context within op_bind() hooks and dcesrv_interface_bind_...
[sfrench/samba-autobuild/.git] / source4 / rpc_server / epmapper / rpc_epmapper.c
index 6b934d7d1b42e5ed01fff3e39874629ca951a5e0..7e9c2614f298a6e28f9087ba3e652f62b30b2401 100644 (file)
@@ -29,7 +29,8 @@
 static NTSTATUS dcesrv_interface_epmapper_bind(struct dcesrv_call_state *dce_call,
                                             const struct dcesrv_interface *iface)
 {
-       return dcesrv_interface_bind_allow_connect(dce_call, iface);
+       struct dcesrv_connection_context *context = dce_call->context;
+       return dcesrv_interface_bind_allow_connect(context, iface);
 }
 
 typedef uint32_t error_status_t;