]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#5048, #5049 from HEAD
authorHoward Chu <hyc@openldap.org>
Sun, 22 Jul 2007 17:24:26 +0000 (17:24 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 22 Jul 2007 17:24:26 +0000 (17:24 +0000)
servers/slapd/overlays/syncprov.c

index c3cc0a49659b12a0468e4d225bd53f49ea83ce5c..5f7832873aed61c086aeb726a1b9006fa75c419d 100644 (file)
@@ -642,6 +642,7 @@ again:
                } else {
                        cf.f_choice = LDAP_FILTER_LE;
                        fop.ors_limit = &fc_limits;
+                       memset( &fc_limits, 0, sizeof( fc_limits ));
                        fc_limits.lms_s_unchecked = 1;
                        fop.ors_filterstr.bv_len = sprintf( buf, "(entryCSN<=%s)",
                                cf.f_av_value.bv_val );
@@ -2461,7 +2462,7 @@ syncprov_db_close(
                return 0;
        }
        if ( si->si_numops ) {
-               Connection conn;
+               Connection conn = {0};
                OperationBuffer opbuf;
                Operation *op = (Operation *) &opbuf;
                SlapReply rs = {REP_RESULT};