[Pkg-openldap-devel] [openldap] 201/209: ITS#8648 check result of ldap_int_initialize in ldap_{get, set}_option

Ryan Tandy rtandy-guest at moszumanska.debian.org
Tue Jul 18 03:51:21 UTC 2017


This is an automated email from the git hooks/post-receive script.

rtandy-guest pushed a commit to branch upstream
in repository openldap.

commit 71a7040393ac02c807e6f2b78967725a3ebd378f
Author: Ryan Tandy <ryan at nardis.ca>
Date:   Sun May 7 20:16:00 2017 +0000

    ITS#8648 check result of ldap_int_initialize in ldap_{get,set}_option
---
 libraries/libldap/options.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libraries/libldap/options.c b/libraries/libldap/options.c
index 7dcd4d2..1705bd9 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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openldap/openldap.git



More information about the Pkg-openldap-devel mailing list