From: Ryan Tandy Date: Sun, 7 May 2017 20:16:00 +0000 (+0000) Subject: ITS#8648 check result of ldap_int_initialize in ldap_{get,set}_option X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e437b12277c1cc8ec72e0f78f660137c60ffaad7;p=openldap ITS#8648 check result of ldap_int_initialize in ldap_{get,set}_option --- diff --git a/libraries/libldap/options.c b/libraries/libldap/options.c index 7dcd4d2d97..1705bd9fc7 100644 --- a/libraries/libldap/options.c +++ b/libraries/libldap/options.c @@ -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) {