s3:smbd/oplock_onefs: avoid using smbd_messaging_context()
authorStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2011 13:24:58 +0000 (14:24 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2011 19:31:10 +0000 (20:31 +0100)
metze

source3/smbd/oplock_onefs.c

index 9e427a3607f34933b70901156729029991204959..615747e92cb5c640b34ce556c58205c4a27f6644 100644 (file)
@@ -309,7 +309,7 @@ static void oplock_break_to_none_handler(uint64_t id)
 
        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,
@@ -346,7 +346,7 @@ static void oplock_break_to_level_two_handler(uint64_t id)
 
        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,