summaryrefslogtreecommitdiff
path: root/ripd
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2008-05-29 19:03:08 +0000
committerPaul Jakma <paul.jakma@sun.com>2008-05-29 19:03:08 +0000
commitfa93b16208c2e7ffb09bd5bf72fb1a70a1ad8f73 (patch)
treef69eeeb8856b70d659811e7b65f33e353200577b /ripd
parent0d6b2ee249e9efba30da3236c413bf03c7b27ed9 (diff)
[ripd] Fix mistaken empty string test
2008-05-29 Stephen Hemminger <stephen.hemminger@vyatta.com> * ripd.c: (rip_auth_md5) fix bogus empty string test
Diffstat (limited to 'ripd')
-rw-r--r--ripd/ChangeLog4
-rw-r--r--ripd/ripd.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ripd/ChangeLog b/ripd/ChangeLog
index ecf353d0..60baef5d 100644
--- a/ripd/ChangeLog
+++ b/ripd/ChangeLog
@@ -1,3 +1,7 @@
+2008-05-29 Stephen Hemminger <stephen.hemminger@vyatta.com>
+
+ * ripd.c: (rip_auth_md5) fix bogus empty string test
+
2008-03-13 Paul Jakma <paul.jakma@sun.com>
* ripd.c/rip_interface.c: Remove 0 entries from rip_msg
diff --git a/ripd/ripd.c b/ripd/ripd.c
index c5e42705..62d8691c 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -926,7 +926,7 @@ rip_auth_md5 (struct rip_packet *packet, struct sockaddr_in *from,
else if (ri->auth_str)
strncpy (auth_str, ri->auth_str, RIP_AUTH_MD5_SIZE);
- if (! auth_str)
+ if (auth_str[0] == 0)
return 0;
/* MD5 digest authentication. */