diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/globals.h | 1 | ||||
-rw-r--r-- | source3/smbd/server.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index 92a3f7660d..cf23509060 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -457,6 +457,7 @@ struct smbd_smb2_tcon { struct pending_auth_data; struct smbd_server_connection { + int sock; const struct tsocket_address *local_address; const struct tsocket_address *remote_address; struct messaging_context *msg_ctx; diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 3c79dc46f9..7b9075338e 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -59,6 +59,7 @@ int smbd_server_fd(void) static void smbd_set_server_fd(int fd) { + smbd_server_conn->sock = fd; server_fd = fd; } |