Blame autofs-5.1.0-fix-signed-comparison-in-inet_fill_net.patch
|
Ian Kent |
ff6f3e |
autofs-5.1.0 - fix signed comparison in inet_fill_net()
|
|
Ian Kent |
ff6f3e |
|
|
Ian Kent |
ff6f3e |
From: Ian Kent <raven@themaw.net>
|
|
Ian Kent |
ff6f3e |
|
|
Ian Kent |
ff6f3e |
Fix the less than 0 comparison of an incorrectly declared var in
|
|
Ian Kent |
ff6f3e |
inet_fill_net().
|
|
Ian Kent |
ff6f3e |
---
|
|
Ian Kent |
ff6f3e |
CHANGELOG | 1 +
|
|
Ian Kent |
ff6f3e |
lib/parse_subs.c | 2 +-
|
|
Ian Kent |
ff6f3e |
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
Ian Kent |
ff6f3e |
|
|
Ian Kent |
ff6f3e |
diff --git a/CHANGELOG b/CHANGELOG
|
|
Ian Kent |
ff6f3e |
index f5bbb34..6977443 100644
|
|
Ian Kent |
ff6f3e |
--- a/CHANGELOG
|
|
Ian Kent |
ff6f3e |
+++ b/CHANGELOG
|
|
Ian Kent |
ff6f3e |
@@ -9,6 +9,7 @@
|
|
Ian Kent |
ff6f3e |
- fix config entry read buffer not checked.
|
|
Ian Kent |
ff6f3e |
- fix FILE pointer check in defaults_read_config().
|
|
Ian Kent |
ff6f3e |
- fix memory leak in conf_amd_get_log_options().
|
|
Ian Kent |
ff6f3e |
+- fix signed comparison in inet_fill_net().
|
|
Ian Kent |
ff6f3e |
|
|
Ian Kent |
ff6f3e |
04/06/2014 autofs-5.1.0
|
|
Ian Kent |
ff6f3e |
=======================
|
|
Ian Kent |
ff6f3e |
diff --git a/lib/parse_subs.c b/lib/parse_subs.c
|
|
Ian Kent |
ff6f3e |
index d3dfa57..c1648c2 100644
|
|
Ian Kent |
ff6f3e |
--- a/lib/parse_subs.c
|
|
Ian Kent |
ff6f3e |
+++ b/lib/parse_subs.c
|
|
Ian Kent |
ff6f3e |
@@ -378,7 +378,7 @@ unsigned int get_proximity(struct sockaddr *host_addr)
|
|
Ian Kent |
ff6f3e |
static char *inet_fill_net(const char *net_num, char *net)
|
|
Ian Kent |
ff6f3e |
{
|
|
Ian Kent |
ff6f3e |
char *np;
|
|
Ian Kent |
ff6f3e |
- unsigned int dots = 3;
|
|
Ian Kent |
ff6f3e |
+ int dots = 3;
|
|
Ian Kent |
ff6f3e |
|
|
Ian Kent |
ff6f3e |
if (strlen(net_num) > INET_ADDRSTRLEN)
|
|
Ian Kent |
ff6f3e |
return NULL;
|