From: Pavel Machek Date: Tue, 16 May 2000 15:00:15 +0000 (+0000) Subject: Password same now actually works X-Git-Tag: v1.2.0~893 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f2663bdb735ca155c32b0e12da814e62bbf9e9d;p=thirdparty%2Fbird.git Password same now actually works --- diff --git a/nest/password.c b/nest/password.c index b8acb53b2..30c09bf6c 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) &&