Commit d6796e7b authored by Pavel Machek's avatar Pavel Machek

Don't segfault when someone adds passwords.

parent 2f2663bd
......@@ -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) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment