From b5e33f8de9b493847503126d4a13ae6c3f427cab Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 13 Jun 2006 20:34:02 +0000 Subject: [PATCH] don't search past end of berval --- libraries/liblutil/passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblutil/passwd.c b/libraries/liblutil/passwd.c index 03024cb118..a14071da05 100644 --- a/libraries/liblutil/passwd.c +++ b/libraries/liblutil/passwd.c @@ -309,7 +309,7 @@ lutil_passwd( * didn't recognize? Assume a scheme name is at least 1 character. */ if (( passwd->bv_val[0] == '{' ) && - ( strchr( passwd->bv_val, '}' ) > passwd->bv_val+1 )) + ( ber_bvchr( passwd, '}' ) > passwd->bv_val+1 )) { return 1; } -- 2.39.5