mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
don't sigsegv if has_ldapinfo_dn_ru is erroneously defined; return a (more) meaningful error
This commit is contained in:
parent
1194042b57
commit
36898bbb76
@ -90,7 +90,7 @@ backsql_dn2id(
|
||||
{
|
||||
backsql_info *bi = op->o_bd->be_private;
|
||||
SQLHSTMT sth = SQL_NULL_HSTMT;
|
||||
BACKSQL_ROW_NTS row;
|
||||
BACKSQL_ROW_NTS row = { 0 };
|
||||
RETCODE rc;
|
||||
int res;
|
||||
struct berval realndn = BER_BVNULL;
|
||||
|
@ -314,9 +314,7 @@ backsql_init_search(
|
||||
}
|
||||
|
||||
} else {
|
||||
rs->sr_ref = referral_rewrite( default_referral,
|
||||
NULL, &op->o_req_dn, scope );
|
||||
rc = rs->sr_err = LDAP_REFERRAL;
|
||||
rs->sr_err = rc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user