summaryrefslogtreecommitdiff
path: root/proto/rip/auth.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2002-09-21 13:57:48 +0000
committerPavel Machek <pavel@ucw.cz>2002-09-21 13:57:48 +0000
commit19bd5c8e2c0fd47ff27668b8c45acc79f4d703b4 (patch)
tree45c04878a19b4ade7bffb2d3f3659696bfc1f533 /proto/rip/auth.c
parent4ca0d0847e015bbecf6db3cec8f3ce57c2d8035c (diff)
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/auth.c')
-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 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;
}
}