Don't segfault when someone adds passwords.
This commit is contained in:
parent
2f2663bdb7
commit
d6796e7b54
1 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,8 @@ password_same(struct password_item *old, struct password_item *new)
|
||||||
{
|
{
|
||||||
if (old == new)
|
if (old == new)
|
||||||
return 1;
|
return 1;
|
||||||
|
if ((!old) || (!new))
|
||||||
|
return 0;
|
||||||
return ((old->from == new->from) &&
|
return ((old->from == new->from) &&
|
||||||
(old->to == new->to) &&
|
(old->to == new->to) &&
|
||||||
(old->passive == new->passive) &&
|
(old->passive == new->passive) &&
|
||||||
|
|
Loading…
Reference in a new issue