From 60d83e06b806642de60c2d23228751f83738a9c3 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 20 Nov 2009 23:20:37 +0000 Subject: [PATCH] Fix typo in 1.487 --- servers/slapd/syncrepl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 0a2d212e3c..c36ead68e9 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -897,7 +897,7 @@ do_syncrep2( if ( i == si->si_cookieState->cs_pnum ) { value_add( &si->si_cookieState->cs_pvals, syncCookie.ctxcsn ); si->si_cookieState->cs_pnum++; - si->si_cookieState->cs_psids = ch_realloc( si->si_cookieState->cs_psids, si->si_cookieState->cs_num * sizeof(int)); + si->si_cookieState->cs_psids = ch_realloc( si->si_cookieState->cs_psids, si->si_cookieState->cs_pnum * sizeof(int)); si->si_cookieState->cs_psids[i] = sid; } ldap_pvt_thread_mutex_unlock( &si->si_cookieState->cs_pmutex ); -- 2.39.5