]> git.sur5r.net Git - openldap/commitdiff
ITS#7868 fix slapo-sock db_init
authorHoward Chu <hyc@openldap.org>
Fri, 18 Jul 2014 19:03:07 +0000 (12:03 -0700)
committerHoward Chu <hyc@openldap.org>
Fri, 18 Jul 2014 19:03:07 +0000 (12:03 -0700)
servers/slapd/back-sock/config.c

index 018b5fdb04be8191a6f793844d6bafd8415cc09b..dba598f82921485f008e8d3aed36276a10374cfd 100644 (file)
@@ -357,12 +357,14 @@ sock_over_db_init(
 {
        slap_overinst   *on = (slap_overinst *)be->bd_info;
        void *private = be->be_private;
+       void *cf_ocs = be->be_cf_ocs;
        int rc;
 
        be->be_private = NULL;
        rc = sock_back_db_init( be, cr );
        on->on_bi.bi_private = be->be_private;
        be->be_private = private;
+       be->be_cf_ocs = cf_ocs;
        return rc;
 }