From 359091625daefccfa1a957dbfb7536376a4c56fc Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 13 Dec 2013 15:36:33 +0100 Subject: [PATCH] MaxMessages: ignore entries with no master while calculating bulk fetch --- src/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.c b/src/sync.c index 4df172c..687911d 100644 --- a/src/sync.c +++ b/src/sync.c @@ -1018,7 +1018,7 @@ box_selected( int sts, void *aux ) /* First, find out the lower bound for the bulk fetch. */ minwuid = INT_MAX; for (srec = svars->srecs; srec; srec = srec->next) { - if (srec->status & S_DEAD) + if ((srec->status & S_DEAD) || srec->uid[M] <= 0) continue; if (srec->status & S_EXPIRED) { if (!srec->uid[S]) {