s4:rpc_server: only use context within op_bind() hooks and dcesrv_interface_bind_...
[nivanova/samba-autobuild/.git] / source4 / rpc_server / backupkey / dcesrv_backupkey_heimdal.c
index 9cd912594c5cfd1224ee4ba01ab2c0ea63949d6b..05113a9cc74faf2f61bc042d7383816bbdb6775e 100644 (file)
@@ -54,7 +54,8 @@
 static NTSTATUS dcesrv_interface_backupkey_bind(struct dcesrv_call_state *dce_call,
                                                const struct dcesrv_interface *iface)
 {
-       return dcesrv_interface_bind_require_privacy(dce_call, iface);
+       struct dcesrv_connection_context *context = dce_call->context;
+       return dcesrv_interface_bind_require_privacy(context, iface);
 }
 
 static const unsigned rsa_with_var_num[] = { 1, 2, 840, 113549, 1, 1, 1 };