]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Disable smb1 in smbXsrv_connection_init_tables
authorDavid Mulder <dmulder@suse.com>
Fri, 18 Mar 2022 21:05:27 +0000 (15:05 -0600)
committerJeremy Allison <jra@samba.org>
Thu, 7 Apr 2022 17:37:30 +0000 (17:37 +0000)
Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/process.c

index 3d48f49b649e6087a26e3eaae0a076f44e83a8d6..abcc5af8a3b9f5d7c9bbbd10996dcd8ca1c432d0 100644 (file)
@@ -3376,6 +3376,7 @@ NTSTATUS smbXsrv_connection_init_tables(struct smbXsrv_connection *conn,
                        return status;
                }
        } else {
+#if defined(WITH_SMB1SERVER)
                status = smb1srv_session_table_init(conn);
                if (!NT_STATUS_IS_OK(status)) {
                        conn->protocol = PROTOCOL_NONE;
@@ -3393,6 +3394,10 @@ NTSTATUS smbXsrv_connection_init_tables(struct smbXsrv_connection *conn,
                        conn->protocol = PROTOCOL_NONE;
                        return status;
                }
+#else
+               conn->protocol = PROTOCOL_NONE;
+               return NT_STATUS_INVALID_NETWORK_RESPONSE;
+#endif
        }
 
        set_Protocol(protocol);