mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
quick fix; needs work
This commit is contained in:
parent
7614e03a63
commit
180ad95b16
@ -194,7 +194,7 @@ main( int argc, char *argv[] )
|
||||
if (req_authzid) {
|
||||
vcctrls = (LDAPControl **) malloc(3*sizeof(LDAPControl *));
|
||||
vcctrls[nvcctrls] = (LDAPControl *) malloc(sizeof(LDAPControl));
|
||||
vcctrls[nvcctrls]->ldctl_oid = LDAP_CONTROL_AUTHZID_REQUEST;
|
||||
vcctrls[nvcctrls]->ldctl_oid = ldap_strdup(LDAP_CONTROL_AUTHZID_REQUEST);
|
||||
vcctrls[nvcctrls]->ldctl_iscritical = 0;
|
||||
vcctrls[nvcctrls]->ldctl_value.bv_val = NULL;
|
||||
vcctrls[nvcctrls]->ldctl_value.bv_len = 0;
|
||||
@ -202,9 +202,9 @@ main( int argc, char *argv[] )
|
||||
}
|
||||
|
||||
if (req_pp) {
|
||||
if (vcctrls) vcctrls = (LDAPControl **) malloc(3*sizeof(LDAPControl *));
|
||||
if (!vcctrls) vcctrls = (LDAPControl **) malloc(3*sizeof(LDAPControl *));
|
||||
vcctrls[nvcctrls] = (LDAPControl *) malloc(sizeof(LDAPControl));
|
||||
vcctrls[nvcctrls]->ldctl_oid = LDAP_CONTROL_PASSWORDPOLICYREQUEST;
|
||||
vcctrls[nvcctrls]->ldctl_oid = ldap_strdup(LDAP_CONTROL_PASSWORDPOLICYREQUEST);
|
||||
vcctrls[nvcctrls]->ldctl_iscritical = 0;
|
||||
vcctrls[nvcctrls]->ldctl_value.bv_val = NULL;
|
||||
vcctrls[nvcctrls]->ldctl_value.bv_len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user