mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix returncode checks
This commit is contained in:
parent
81c616fdb2
commit
3c704f4d14
@ -192,19 +192,21 @@ map_attr_value(
|
|||||||
{
|
{
|
||||||
dncookie fdc = *dc;
|
dncookie fdc = *dc;
|
||||||
|
|
||||||
|
#ifdef ENABLE_REWRITE
|
||||||
fdc.ctx = "searchFilter";
|
fdc.ctx = "searchFilter";
|
||||||
|
#endif
|
||||||
|
|
||||||
switch ( ldap_back_dn_massage( &fdc, value, &vtmp ) ) {
|
switch ( ldap_back_dn_massage( &fdc, value, &vtmp ) ) {
|
||||||
case REWRITE_REGEXEC_OK:
|
case LDAP_SUCCESS:
|
||||||
if ( vtmp.bv_val != value->bv_val ) {
|
if ( vtmp.bv_val != value->bv_val ) {
|
||||||
freeval = 1;
|
freeval = 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REWRITE_REGEXEC_UNWILLING:
|
case LDAP_UNWILLING_TO_PERFORM:
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
case REWRITE_REGEXEC_ERR:
|
case LDAP_OTHER:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user