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

metze at samba.org metze at samba.org
Fri Dec 22 18:53:39 GMT 2006


Author: metze
Date: 2006-12-22 18:53:39 +0000 (Fri, 22 Dec 2006)
New Revision: 20325

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

Log:
handle NULL strings in is_ipaddress()

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


Changeset:
Modified: branches/SAMBA_4_0/source/lib/util/util.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util/util.c	2006-12-22 18:30:36 UTC (rev 20324)
+++ branches/SAMBA_4_0/source/lib/util/util.c	2006-12-22 18:53:39 UTC (rev 20325)
@@ -292,7 +292,9 @@
 {
 	BOOL pure_address = True;
 	int i;
-  
+
+	if (str == NULL) return False;
+
 	for (i=0; pure_address && str[i]; i++)
 		if (!(isdigit((int)str[i]) || str[i] == '.'))
 			pure_address = False;



More information about the samba-cvs mailing list