changeset 22355:d36ffc472585

merge of '6c2edffe33d42d0d4190eea6c634aa46a22ec2d0' and 'a4c4bba4aa71dc352be290b5e3a2ec143cdcc5c4'
author Richard Nelson <wabz@pidgin.im>
date Thu, 28 Feb 2008 11:18:43 +0000
parents 50931b2113bf (current diff) 51e740d3af3b (diff)
children 561729870929
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Thu Feb 28 09:23:37 2008 +0000
+++ b/libpurple/util.c	Thu Feb 28 11:18:43 2008 +0000
@@ -4135,7 +4135,7 @@
 	int c, o1, o2, o3, o4;
 	char end;
 	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)
+	if (c != 4 || o1 < 0 || o1 > 255 || o2 < 0 || o2 > 255 || o3 < 0 || o3 > 255 || o4 < 0 || o4 > 255)
 		return FALSE;
 	return TRUE;
 }