summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-05-06 09:48:16 +0200
committerGünther Deschner <gd@samba.org>2008-05-06 09:48:16 +0200
commit611d79d0ed27a1762c40caeb12b383fd96a58511 (patch)
treec4ec4bb2bbc6b0734818e067e83551c59b2daed9 /source3/libsmb
parent1f6065765c148251488acd068fdea98717f7233f (diff)
downloadsamba-611d79d0ed27a1762c40caeb12b383fd96a58511.tar.gz
samba-611d79d0ed27a1762c40caeb12b383fd96a58511.tar.bz2
samba-611d79d0ed27a1762c40caeb12b383fd96a58511.zip
build: fix the build w/o ldap.
Guenther (This used to be commit a159ec5f1f3ec8e9232b8f3230a996a3f9986bc1)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c4
1 files changed, 3 insertions, 1 deletions
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 */