]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
build: fix the build w/o ldap.
authorGünther Deschner <gd@samba.org>
Tue, 6 May 2008 07:48:16 +0000 (09:48 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 6 May 2008 07:49:42 +0000 (09:49 +0200)
Guenther
(cherry picked from commit a159ec5f1f3ec8e9232b8f3230a996a3f9986bc1)

source/libsmb/cliconnect.c

index e0c18d80564196b447f0892cca6929de12f96578..ae16572278f05cbf10ae2ba42e6e5c485330d975 100644 (file)
@@ -928,7 +928,9 @@ ADS_STATUS cli_session_setup_spnego(struct cli_state *cli, const char *user,
 ntlmssp:
 
        account = talloc_strdup(talloc_tos(), user);
-       ADS_ERROR_HAVE_NO_MEMORY(account);
+       if (!account) {
+               return ADS_ERROR_NT(NT_STATUS_NO_MEMORY);
+       }
 
        /* when falling back to ntlmssp while authenticating with a machine
         * account strip off the realm - gd */