From: Quanah Gibson-Mount Date: Wed, 5 Jul 2017 20:14:54 +0000 (-0700) Subject: ITS#8583 - Fix C++ LDAP Control structure X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a795d7cc0b6583ed3eb5313b9203087af6d336c3;p=openldap ITS#8583 - Fix C++ LDAP Control structure --- 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(){