s3:smb2_server: fix a logic error, we should sign non guest sessions
authorStefan Metzmacher <metze@samba.org>
Thu, 22 Sep 2011 19:04:51 +0000 (21:04 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sun, 12 Feb 2012 19:59:48 +0000 (20:59 +0100)
metze

The last 2 patches address bug #8749 (SMB2: SessionSetup responses are not
signed).

source3/smbd/smb2_sesssetup.c

index c837277d0dfab29b60ab790efca52bc2762ad43c..64a8053e40b7d8b933f6e518d6f4a5d0a0543997 100644 (file)
@@ -317,7 +317,7 @@ static NTSTATUS smbd_smb2_session_setup_krb5(struct smbd_smb2_session *session,
         * so that the response can be signed
         */
        smb2req->session = session;
-       if (guest) {
+       if (!guest) {
                smb2req->do_signing = true;
        }