From: Howard Chu Date: Sun, 22 Jul 2007 17:24:26 +0000 (+0000) Subject: ITS#5048, #5049 from HEAD X-Git-Tag: OPENLDAP_REL_ENG_2_3_38~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=802d742494d457550d7861c9bdcc45f95e25f88e;p=thirdparty%2Fopenldap.git ITS#5048, #5049 from HEAD --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index c3cc0a4965..5f7832873a 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -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};