pidgin: 25851b74: Fix CID #387

rlaager at pidgin.im rlaager at pidgin.im
Fri Nov 14 02:45:50 EST 2008


-----------------------------------------------------------------
Revision: 25851b74b4471910b619020327beb96e047e7cf1
Ancestor: 6798e94c0663d5ea97f09b185f23950e298cb138
Author: rlaager at pidgin.im
Date: 2008-11-14T06:40:55
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/25851b74b4471910b619020327beb96e047e7cf1

Modified files:
        libpurple/util.c

ChangeLog: 

Fix CID #387

-------------- next part --------------
============================================================
--- libpurple/util.c	e11798c203ad7faa428447fb8d043782f93a396b
+++ libpurple/util.c	48de854112a59f90848931b518b272aa98a32112
@@ -4196,6 +4196,9 @@ purple_ip_address_is_valid(const char *i
 {
 	int c, o1, o2, o3, o4;
 	char end;
+
+	g_return_val_if_fail(ip != NULL, FALSE);
+
 	c = sscanf(ip, "%d.%d.%d.%d%c", &o1, &o2, &o3, &o4, &end);
 	if (c != 4 || o1 < 0 || o1 > 255 || o2 < 0 || o2 > 255 || o3 < 0 || o3 > 255 || o4 < 0 || o4 > 255)
 		return FALSE;


More information about the Commits mailing list