From: Kurt Zeilenga Date: Fri, 9 Jan 2004 04:48:40 +0000 (+0000) Subject: Fix text == NULL bugs in last commit X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~55 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c3674e92f9e696319cff261fb8e26a0be126ace5;p=openldap Fix text == NULL bugs in last commit --- diff --git a/libraries/liblutil/passwd.c b/libraries/liblutil/passwd.c index 064343cbc3..ac780b9d4b 100644 --- a/libraries/liblutil/passwd.c +++ b/libraries/liblutil/passwd.c @@ -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; }