]> git.sur5r.net Git - openldap/commitdiff
don't sigsegv if has_ldapinfo_dn_ru is erroneously defined; return a (more) meaningfu...
authorPierangelo Masarati <ando@openldap.org>
Sat, 8 Jul 2006 11:47:23 +0000 (11:47 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 8 Jul 2006 11:47:23 +0000 (11:47 +0000)
servers/slapd/back-sql/entry-id.c
servers/slapd/back-sql/search.c

index 0e17f1c1f860e0cceaa3306c7e816458e6ce68d3..801729e73363a8e2d7a8ccd7aa5666949dc0655b 100644 (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;
index f6a5dcd346673a67990b4bf52a35db030a32527d..6824827a0959af93bb4e74dfa5422469fd26857a 100644 (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;
                        }
                }
        }