diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-10-13 12:54:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:21:00 -0500 |
commit | 541339fbd2d0d4154644c7a843adf56ec382afc4 (patch) | |
tree | a866a52e43f2b13cbcd6afd30aec7ad5a3459c32 /source4/auth/gensec | |
parent | fa67b43ae8cf850b29e61d5e11e1764f8cd1282e (diff) | |
download | samba-541339fbd2d0d4154644c7a843adf56ec382afc4.tar.gz samba-541339fbd2d0d4154644c7a843adf56ec382afc4.tar.bz2 samba-541339fbd2d0d4154644c7a843adf56ec382afc4.zip |
r19265: It is not an error to set the target hostname to NULL.
Andrew Bartlett
(This used to be commit c9c2e90e2e3937d05c58c681af187413b12d9220)
Diffstat (limited to 'source4/auth/gensec')
-rw-r--r-- | source4/auth/gensec/gensec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c index b44dd9efcb..619cf7c350 100644 --- a/source4/auth/gensec/gensec.c +++ b/source4/auth/gensec/gensec.c @@ -1092,7 +1092,7 @@ _PUBLIC_ const char *gensec_get_target_service(struct gensec_security *gensec_se _PUBLIC_ NTSTATUS gensec_set_target_hostname(struct gensec_security *gensec_security, const char *hostname) { gensec_security->target.hostname = talloc_strdup(gensec_security, hostname); - if (!gensec_security->target.hostname) { + if (hostname && !gensec_security->target.hostname) { return NT_STATUS_NO_MEMORY; } return NT_STATUS_OK; |