]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Allow disabling SMB1 in struct smbXsrv_connection
authorDavid Mulder <dmulder@suse.com>
Thu, 10 Mar 2022 21:22:39 +0000 (14:22 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 7 Apr 2022 17:37:29 +0000 (17:37 +0000)
Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/globals.h

index c127357f147f55d398b165e263c99addd860e7d8..70cb1d0327a0c4fe28f1bd917679ddc7441271d6 100644 (file)
@@ -387,6 +387,7 @@ struct smbXsrv_connection {
                struct smbd_smb2_send_queue *queue;
        } ack;
 
+#if defined(WITH_SMB1SERVER)
        struct {
                struct {
                        /*
@@ -452,6 +453,7 @@ struct smbXsrv_connection {
 
                struct msg_state *msg_state;
        } smb1;
+#endif
        struct {
                struct smbd_smb2_request_read_state {
                        struct smbd_smb2_request *req;