diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-05-16 17:00:15 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-05-16 17:00:15 +0200 |
commit | 2f2663bdb735ca155c32b0e12da814e62bbf9e9d (patch) | |
tree | 092f4e83cd7712c1aa0304f1fceda627a9102e91 | |
parent | 898fdd85dc4568816ac0436c1b012f2fb35ef3e4 (diff) | |
download | bird-2f2663bdb735ca155c32b0e12da814e62bbf9e9d.tar bird-2f2663bdb735ca155c32b0e12da814e62bbf9e9d.zip |
Password same now actually works
-rw-r--r-- | nest/password.c | 2 |
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) && |