From: Howard Chu Date: Thu, 5 Mar 2009 17:53:01 +0000 (+0000) Subject: Check rc in prev commit X-Git-Tag: ACLCHECK_0~748 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7c183775d0a96448aef12ce4e0cbb492615e919c;p=openldap Check rc in prev commit --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index a890f5be6f..68ce37d93c 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -908,11 +908,11 @@ syncprov_qplay( Operation *op, syncops *so ) } while (0); /* We now only send one change at a time, to prevent one - * psearch from hogging all the CPU. Resubmit this - * task if there are more responses queued. + * psearch from hogging all the CPU. Resubmit this task if + * there are more responses queued and no errors occurred. */ - if ( so->s_res ) { + if ( rc == 0 && so->s_res ) { syncprov_qstart( so ); } else { so->s_flags ^= PS_TASK_QUEUED;