Fix returncode checks

This commit is contained in:
Howard Chu 2003-04-07 19:47:31 +00:00
parent 81c616fdb2
commit 3c704f4d14

View File

@ -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;
} }