summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-16 15:00:15 +0000
committerPavel Machek <pavel@ucw.cz>2000-05-16 15:00:15 +0000
commit2f2663bdb735ca155c32b0e12da814e62bbf9e9d (patch)
tree092f4e83cd7712c1aa0304f1fceda627a9102e91
parent898fdd85dc4568816ac0436c1b012f2fb35ef3e4 (diff)
Password same now actually works
-rw-r--r--nest/password.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nest/password.c b/nest/password.c
index b8acb53b..30c09bf6 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) &&