don't sigsegv if has_ldapinfo_dn_ru is erroneously defined; return a (more) meaningful error

This commit is contained in:
Pierangelo Masarati 2006-07-08 11:47:23 +00:00
parent 1194042b57
commit 36898bbb76
2 changed files with 2 additions and 4 deletions

View File

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

View File

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