From a795d7cc0b6583ed3eb5313b9203087af6d336c3 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Wed, 5 Jul 2017 13:14:54 -0700 Subject: [PATCH] ITS#8583 - Fix C++ LDAP Control structure --- contrib/ldapc++/src/LDAPControl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/ldapc++/src/LDAPControl.cpp b/contrib/ldapc++/src/LDAPControl.cpp index e965a3f1a2..bae3167cfb 100644 --- a/contrib/ldapc++/src/LDAPControl.cpp +++ b/contrib/ldapc++/src/LDAPControl.cpp @@ -39,8 +39,9 @@ LDAPCtrl::LDAPCtrl(const string& oid, bool critical, const string& data){ LDAPCtrl::LDAPCtrl(const LDAPControl* ctrl){ DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPCtrl::LDAPCtrl()" << endl); m_oid = string(ctrl->ldctl_oid); - m_oid = ctrl->ldctl_iscritical ? true : false; - m_oid = string(ctrl->ldctl_value.bv_val, ctrl->ldctl_value.bv_len ); + m_isCritical = ctrl->ldctl_iscritical ? true : false; + m_data = string(ctrl->ldctl_value.bv_val, ctrl->ldctl_value.bv_len ); + m_noData = ctrl->ldctl_value.bv_len ? false : true; } LDAPCtrl::~LDAPCtrl(){ -- 2.39.5