summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2002-09-21 15:57:48 +0200
committerPavel Machek <pavel@ucw.cz>2002-09-21 15:57:48 +0200
commit19bd5c8e2c0fd47ff27668b8c45acc79f4d703b4 (patch)
tree45c04878a19b4ade7bffb2d3f3659696bfc1f533
parent4ca0d0847e015bbecf6db3cec8f3ce57c2d8035c (diff)
downloadbird-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.
-rw-r--r--proto/rip/auth.c2
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;
}
}