From: Günther Deschner Date: Tue, 6 May 2008 07:48:16 +0000 (+0200) Subject: build: fix the build w/o ldap. X-Git-Tag: samba-4.0.0alpha6~801^2~1513 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=611d79d0ed27a1762c40caeb12b383fd96a58511;p=thirdparty%2Fsamba.git build: fix the build w/o ldap. Guenther (This used to be commit a159ec5f1f3ec8e9232b8f3230a996a3f9986bc1) --- diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 671f0e7bc5f..751f10bc53a 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -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 */