mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
ITS#8583 - Fix C++ LDAP Control structure
This commit is contained in:
parent
36839b3ea1
commit
0b70535007
1 changed files with 3 additions and 2 deletions
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue