diff options
author | Günther Deschner <gd@samba.org> | 2008-05-06 09:48:16 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-05-06 09:48:16 +0200 |
commit | 611d79d0ed27a1762c40caeb12b383fd96a58511 (patch) | |
tree | c4ec4bb2bbc6b0734818e067e83551c59b2daed9 | |
parent | 1f6065765c148251488acd068fdea98717f7233f (diff) | |
download | samba-611d79d0ed27a1762c40caeb12b383fd96a58511.tar.gz samba-611d79d0ed27a1762c40caeb12b383fd96a58511.tar.bz2 samba-611d79d0ed27a1762c40caeb12b383fd96a58511.zip |
build: fix the build w/o ldap.
Guenther
(This used to be commit a159ec5f1f3ec8e9232b8f3230a996a3f9986bc1)
-rw-r--r-- | source3/libsmb/cliconnect.c | 4 |
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 */ |