s3: Remove smbd_messaging_context() from rename_open_files()
[kamenim/samba.git] / source3 / smbd / reply.c
index 3010c74eca50212dd237e4dcc0d59fba9dbff6a0..7c80daf86318e964aa8802fac6811e4bfc6a534e 100644 (file)
@@ -5609,7 +5609,7 @@ static void rename_open_files(connection_struct *conn,
        }
 
        /* Send messages to all smbd's (not ourself) that the name has changed. */
-       rename_share_filename(smbd_messaging_context(), lck, conn->connectpath,
+       rename_share_filename(conn->sconn->msg_ctx, lck, conn->connectpath,
                              smb_fname_dst);
 
 }