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:48:16 +0000 (09:48 +0200)
Guenther
(This used to be commit a159ec5f1f3ec8e9232b8f3230a996a3f9986bc1)

source3/libsmb/cliconnect.c

index 671f0e7bc5fb81ad92ee68892ce0d0fd69f5e991..751f10bc53af640da87b77881aa74fc294180208 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 */