From 611d79d0ed27a1762c40caeb12b383fd96a58511 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 6 May 2008 09:48:16 +0200 Subject: build: fix the build w/o ldap. Guenther (This used to be commit a159ec5f1f3ec8e9232b8f3230a996a3f9986bc1) --- source3/libsmb/cliconnect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/libsmb/cliconnect.c') diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 671f0e7bc5..751f10bc53 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 */ -- cgit