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

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