- struct smbd_server_connection *sconn;
+ struct smbd_server_connection *sconn =
+ talloc_get_type(private_data,
+ struct smbd_server_connection);
+
+ if (sconn == NULL) {
+ return;
+ }
if (data->data == NULL) {
DEBUG(0, ("Got NULL buffer\n"));
if (data->data == NULL) {
DEBUG(0, ("Got NULL buffer\n"));
(unsigned long long)msg.share_file_id,
(unsigned long long)msg.op_mid));
(unsigned long long)msg.share_file_id,
(unsigned long long)msg.op_mid));
process_oplock_break_message);
messaging_register(sconn->msg_ctx, sconn, MSG_SMB_ASYNC_LEVEL2_BREAK,
process_oplock_async_level2_break_message);
process_oplock_break_message);
messaging_register(sconn->msg_ctx, sconn, MSG_SMB_ASYNC_LEVEL2_BREAK,
process_oplock_async_level2_break_message);
- messaging_register(sconn->msg_ctx, NULL, MSG_SMB_BREAK_RESPONSE,
+ messaging_register(sconn->msg_ctx, sconn, MSG_SMB_BREAK_RESPONSE,
process_oplock_break_response);
messaging_register(sconn->msg_ctx, NULL, MSG_SMB_KERNEL_BREAK,
process_kernel_oplock_break);
process_oplock_break_response);
messaging_register(sconn->msg_ctx, NULL, MSG_SMB_KERNEL_BREAK,
process_kernel_oplock_break);