fix return code (prevents clean usage of back-ldap for internal searchs)

This commit is contained in:
Pierangelo Masarati 2005-08-17 19:38:36 +00:00
parent 8801a302fa
commit 5873048347

View File

@ -882,7 +882,7 @@ retry:;
ldap_memfree( text );
}
rs->sr_text = NULL;
return( ERR_OK( rs->sr_err ) ? 0 : -1 );
return( ERR_OK( rs->sr_err ) ? LDAP_SUCCESS : rs->sr_err );
}
/* return true if bound, false if failed */