mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 11:39:34 -05:00
Fix text == NULL bugs in last commit
This commit is contained in:
parent
c8408d3c6a
commit
c3674e92f9
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue