summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-16 17:00:15 +0200
committerPavel Machek <pavel@ucw.cz>2000-05-16 17:00:15 +0200
commit2f2663bdb735ca155c32b0e12da814e62bbf9e9d (patch)
tree092f4e83cd7712c1aa0304f1fceda627a9102e91 /nest
parent898fdd85dc4568816ac0436c1b012f2fb35ef3e4 (diff)
downloadbird-2f2663bdb735ca155c32b0e12da814e62bbf9e9d.tar
bird-2f2663bdb735ca155c32b0e12da814e62bbf9e9d.zip
Password same now actually works
Diffstat (limited to 'nest')
-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) &&