]> git.sur5r.net Git - openldap/commitdiff
Fix text == NULL bugs in last commit
authorKurt Zeilenga <kurt@openldap.org>
Fri, 9 Jan 2004 04:48:40 +0000 (04:48 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 9 Jan 2004 04:48:40 +0000 (04:48 +0000)
libraries/liblutil/passwd.c

index 064343cbc3df4d0ed79ab963663b68d9503e032c..ac780b9d4b743e5ae1c73bbfa200bc06f89a6ca9 100644 (file)
@@ -378,12 +378,12 @@ struct berval * lutil_passwd_hash(
        const struct pw_scheme *sc = get_scheme( method );
 
        if( sc == NULL ) {
-               *text = "scheme not recognized";
+               if( text ) *text = "scheme not recognized";
                return NULL;
        }
 
        if( ! sc->hash_fn ) {
-               *text = "scheme provided no hash function";
+               if( text ) *text = "scheme provided no hash function";
                return NULL;
        }