summaryrefslogtreecommitdiffstats
path: root/nest/password.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/password.c')
-rw-r--r--nest/password.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nest/password.c b/nest/password.c
index b8acb53..30c09bf 100644
--- a/nest/password.c
+++ b/nest/password.c
@@ -54,6 +54,8 @@ password_strncpy(char *to, char *from, int len)
int
password_same(struct password_item *old, struct password_item *new)
{
+ if (old == new)
+ return 1;
return ((old->from == new->from) &&
(old->to == new->to) &&
(old->passive == new->passive) &&