init_share_mode_entry(&sme, cb, FORCE_OPLOCK_BREAK_TO_NONE);
share_mode_entry_to_message(msg, &sme);
- messaging_send_buf(smbd_messaging_context(),
+ messaging_send_buf(cb->sconn->msg_ctx,
sme.pid,
MSG_SMB_ASYNC_LEVEL2_BREAK,
(uint8_t *)msg,
init_share_mode_entry(&sme, cb, LEVEL_II_OPLOCK);
share_mode_entry_to_message(msg, &sme);
- messaging_send_buf(smbd_messaging_context(),
+ messaging_send_buf(cb->sconn->msg_ctx,
sme.pid,
MSG_SMB_BREAK_REQUEST,
(uint8_t *)msg,