Commit 3c704f4d authored by Howard Chu's avatar Howard Chu
Browse files

Fix returncode checks

parent 81c616fd
...@@ -192,19 +192,21 @@ map_attr_value( ...@@ -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;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment