s3:smbd: avoid using sconn_server_id()
[mat/samba.git] / source3 / smbd / negprot.c
index 52ef96d5fc9ab93a768d1919ffbb1da3e7e60d66..0b5b810da97b2cc121a7034ef4d93236dd63e6c0 100644 (file)
@@ -720,7 +720,7 @@ void reply_negprot(struct smb_request *req)
           when the client connects to port 445.  Of course there is a small
           window where we are listening to messages   -- jerry */
 
-       serverid_register(sconn_server_id(sconn),
+       serverid_register(messaging_server_id(sconn->msg_ctx),
                          FLAG_MSG_GENERAL|FLAG_MSG_SMBD
                          |FLAG_MSG_PRINT_GENERAL);