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:
parent
4ca0d0847e
commit
19bd5c8e2c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue