s3:smb2_ioctl: fix GUID_compare() check in FSCTL_VALIDATE_NEGOTIATE_INFO
authorStefan Metzmacher <metze@samba.org>
Wed, 25 Jul 2012 14:43:58 +0000 (16:43 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 25 Jul 2012 21:32:18 +0000 (23:32 +0200)
metze

source3/smbd/smb2_ioctl.c

index 3e2b82faaf6ff886cd8fe9c311f46b7fc1cefcb7..3502d35fe32fe4d27249f4c4849831e21507ca2b 100644 (file)
@@ -540,7 +540,7 @@ static struct tevent_req *smbd_smb2_ioctl_send(TALLOC_CTX *mem_ctx,
                        }
                }
 
-               if (!GUID_compare(&in_guid, &conn->smb2.client.guid)) {
+               if (GUID_compare(&in_guid, &conn->smb2.client.guid) != 0) {
                        state->disconnect = true;
                        tevent_req_nterror(req, NT_STATUS_ACCESS_DENIED);
                        return tevent_req_post(req, ev);