git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f60657
)
build: fix the build w/o ldap.
author
Günther Deschner
<gd@samba.org>
Tue, 6 May 2008 07:48:16 +0000
(09:48 +0200)
committer
Gü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
patch
|
blob
|
history
diff --git
a/source3/libsmb/cliconnect.c
b/source3/libsmb/cliconnect.c
index 671f0e7bc5fb81ad92ee68892ce0d0fd69f5e991..751f10bc53af640da87b77881aa74fc294180208 100644
(file)
--- 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 */