Check the right variable for being NULL
authorVolker Lendecke <vl@samba.org>
Fri, 29 Feb 2008 21:33:35 +0000 (22:33 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 29 Feb 2008 21:39:45 +0000 (22:39 +0100)
source/libsmb/ntlmssp.c

index 35c20ed6475fe5306c00a0b025f79c9ad1993402..8355669d9fe3750f6bf28107869934366e00a50d 100644 (file)
@@ -571,7 +571,7 @@ static NTSTATUS ntlmssp_server_negotiate(struct ntlmssp_state *ntlmssp_state,
        strlower_m(dnsdomname);
 
        dnsname = get_mydnsfullname();
-       if (!dnsdomname) {
+       if (!dnsname) {
                return NT_STATUS_INVALID_COMPUTER_NAME;
        }