diff options
author | Pavel Machek <pavel@ucw.cz> | 2002-09-21 15:57:48 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2002-09-21 15:57:48 +0200 |
commit | 19bd5c8e2c0fd47ff27668b8c45acc79f4d703b4 (patch) | |
tree | 45c04878a19b4ade7bffb2d3f3659696bfc1f533 /proto/rip | |
parent | 4ca0d0847e015bbecf6db3cec8f3ce57c2d8035c (diff) | |
download | bird-19bd5c8e2c0fd47ff27668b8c45acc79f4d703b4.tar bird-19bd5c8e2c0fd47ff27668b8c45acc79f4d703b4.zip |
Password does not need to be null-terminated, do not print garbage in
such case. Thanks to silvio@big.net.
Diffstat (limited to 'proto/rip')
-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 c23872b..8aafe2e 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; } } |