Blame SOURCES/autofs-5.1.0-fix-signed-comparison-in-inet_fill_net.patch

6bbd11
autofs-5.1.0 - fix signed comparison in inet_fill_net()
6bbd11
6bbd11
From: Ian Kent <raven@themaw.net>
6bbd11
6bbd11
Fix the less than 0 comparison of an incorrectly declared var in
6bbd11
inet_fill_net().
6bbd11
---
6bbd11
 CHANGELOG        |    1 +
6bbd11
 lib/parse_subs.c |    2 +-
6bbd11
 2 files changed, 2 insertions(+), 1 deletion(-)
6bbd11
6bbd11
--- autofs-5.0.7.orig/CHANGELOG
6bbd11
+++ autofs-5.0.7/CHANGELOG
6bbd11
@@ -134,6 +134,7 @@
6bbd11
 - fix config entry read buffer not checked.
6bbd11
 - fix FILE pointer check in defaults_read_config().
6bbd11
 - fix memory leak in conf_amd_get_log_options().
6bbd11
+- fix signed comparison in inet_fill_net().
6bbd11
 
6bbd11
 25/07/2012 autofs-5.0.7
6bbd11
 =======================
6bbd11
--- autofs-5.0.7.orig/lib/parse_subs.c
6bbd11
+++ autofs-5.0.7/lib/parse_subs.c
6bbd11
@@ -378,7 +378,7 @@ unsigned int get_proximity(struct sockad
6bbd11
 static char *inet_fill_net(const char *net_num, char *net)
6bbd11
 {
6bbd11
 	char *np;
6bbd11
-	unsigned int dots = 3;
6bbd11
+	int dots = 3;
6bbd11
 
6bbd11
 	if (strlen(net_num) > INET_ADDRSTRLEN)
6bbd11
 		return NULL;