Fix text == NULL bugs in last commit

This commit is contained in:
Kurt Zeilenga 2004-01-09 04:48:40 +00:00
parent c8408d3c6a
commit c3674e92f9

View 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;
}