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

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