svn commit: samba r8703 - in branches/SAMBA_4_0/source/lib: .

tridge at samba.org tridge at samba.org
Fri Jul 22 04:32:59 GMT 2005


Author: tridge
Date: 2005-07-22 04:32:59 +0000 (Fri, 22 Jul 2005)
New Revision: 8703

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

Log:
cope with null string in interpret_addr()




Modified:
   branches/SAMBA_4_0/source/lib/util.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/util.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util.c	2005-07-22 04:30:11 UTC (rev 8702)
+++ branches/SAMBA_4_0/source/lib/util.c	2005-07-22 04:32:59 UTC (rev 8703)
@@ -332,7 +332,7 @@
 	struct hostent *hp;
 	uint32_t res;
 
-	if (str == NULL || 
+	if (str == NULL || *str == 0 ||
 	    strcmp(str,"0.0.0.0") == 0) {
 		return 0;
 	}



More information about the samba-cvs mailing list