mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
ITS#8648 check result of ldap_int_initialize in ldap_{get,set}_option
This commit is contained in:
parent
7b5181da8c
commit
e437b12277
1 changed files with 4 additions and 0 deletions
|
|
@ -106,6 +106,8 @@ ldap_get_option(
|
|||
|
||||
if( lo->ldo_valid != LDAP_INITIALIZED ) {
|
||||
ldap_int_initialize(lo, NULL);
|
||||
if ( lo->ldo_valid != LDAP_INITIALIZED )
|
||||
return LDAP_LOCAL_ERROR;
|
||||
}
|
||||
|
||||
if(ld != NULL) {
|
||||
|
|
@ -446,6 +448,8 @@ ldap_set_option(
|
|||
|
||||
if( lo->ldo_valid != LDAP_INITIALIZED ) {
|
||||
ldap_int_initialize(lo, dbglvl);
|
||||
if ( lo->ldo_valid != LDAP_INITIALIZED )
|
||||
return LDAP_LOCAL_ERROR;
|
||||
}
|
||||
|
||||
if(ld != NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue