From fa93b16208c2e7ffb09bd5bf72fb1a70a1ad8f73 Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Thu, 29 May 2008 19:03:08 +0000 Subject: [ripd] Fix mistaken empty string test 2008-05-29 Stephen Hemminger * ripd.c: (rip_auth_md5) fix bogus empty string test --- ripd/ChangeLog | 4 ++++ ripd/ripd.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 + + * ripd.c: (rip_auth_md5) fix bogus empty string test + 2008-03-13 Paul Jakma * 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. */ -- cgit v1.2.1