mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix text == NULL bugs in last commit
This commit is contained in:
parent
c8408d3c6a
commit
c3674e92f9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user