0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-09-19 20:05:21 +00:00

Password does not need to be null-terminated, do not print garbage in

such case. Thanks to silvio@big.net.
This commit is contained in:
Pavel Machek 2002-09-21 13:57:48 +00:00
parent 4ca0d0847e
commit 19bd5c8e2c

View File

@ -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;
}
}