]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/passwd.c
fix test when slapo-memberof(5) built as module (ITS#5132)
[openldap] / libraries / liblutil / passwd.c
index 269df67ed188c2bf58f3ab45ec29ceb1ccac80bd..2ccad563b2047984233644c87cd6821118eb1b29 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -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;
        }