mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 10:09:43 -05:00
ITS#8583 - Fix C++ LDAP Control structure
This commit is contained in:
parent
90835da72f
commit
a795d7cc0b
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