svn commit: samba r19265 - in branches/SAMBA_4_0/source/auth/gensec: .

abartlet at samba.org abartlet at samba.org
Fri Oct 13 12:54:14 GMT 2006


Author: abartlet
Date: 2006-10-13 12:54:13 +0000 (Fri, 13 Oct 2006)
New Revision: 19265

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19265

Log:
It is not an error to set the target hostname to NULL.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/auth/gensec/gensec.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/gensec/gensec.c
===================================================================
--- branches/SAMBA_4_0/source/auth/gensec/gensec.c	2006-10-13 09:44:55 UTC (rev 19264)
+++ branches/SAMBA_4_0/source/auth/gensec/gensec.c	2006-10-13 12:54:13 UTC (rev 19265)
@@ -1092,7 +1092,7 @@
 _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;



More information about the samba-cvs mailing list