diff options
author | Pavel Machek <pavel@ucw.cz> | 2002-09-21 13:57:48 +0000 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2002-09-21 13:57:48 +0000 |
commit | 19bd5c8e2c0fd47ff27668b8c45acc79f4d703b4 (patch) | |
tree | 45c04878a19b4ade7bffb2d3f3659696bfc1f533 | |
parent | 4ca0d0847e015bbecf6db3cec8f3ce57c2d8035c (diff) |
Password does not need to be null-terminated, do not print garbage in
such case. Thanks to silvio@big.net.
-rw-r--r-- | proto/rip/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/rip/auth.c b/proto/rip/auth.c index c23872be..8aafe2e0 100644 --- a/proto/rip/auth.c +++ b/proto/rip/auth.c @@ -44,7 +44,7 @@ rip_incoming_authentication( struct proto *p, struct rip_block_auth *block, stru } if (strncmp( (char *) (&block->packetlen), passwd->password, 16)) { log( L_AUTH "Passwd authentication failed!" ); - DBG( "Expected %s, got %s\n", passwd->password, &block->packetlen ); + DBG( "Expected %s, got %.16s\n", passwd->password, &block->packetlen ); return 1; } } |