0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 20:58:44 +00:00

Don't segfault when someone adds passwords.

This commit is contained in:
Pavel Machek 2000-05-16 15:02:27 +00:00
parent 2f2663bdb7
commit d6796e7b54

View File

@ -56,6 +56,8 @@ password_same(struct password_item *old, struct password_item *new)
{
if (old == new)
return 1;
if ((!old) || (!new))
return 0;
return ((old->from == new->from) &&
(old->to == new->to) &&
(old->passive == new->passive) &&