forked from Mirror/frr
[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
This commit is contained in:
parent
0d6b2ee249
commit
fa93b16208
|
@ -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>
|
2008-03-13 Paul Jakma <paul.jakma@sun.com>
|
||||||
|
|
||||||
* ripd.c/rip_interface.c: Remove 0 entries from rip_msg
|
* ripd.c/rip_interface.c: Remove 0 entries from rip_msg
|
||||||
|
|
|
@ -926,7 +926,7 @@ rip_auth_md5 (struct rip_packet *packet, struct sockaddr_in *from,
|
||||||
else if (ri->auth_str)
|
else if (ri->auth_str)
|
||||||
strncpy (auth_str, ri->auth_str, RIP_AUTH_MD5_SIZE);
|
strncpy (auth_str, ri->auth_str, RIP_AUTH_MD5_SIZE);
|
||||||
|
|
||||||
if (! auth_str)
|
if (auth_str[0] == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* MD5 digest authentication. */
|
/* MD5 digest authentication. */
|
||||||
|
|
Loading…
Reference in a new issue