diff options
Diffstat (limited to 'sink.c')
-rw-r--r-- | sink.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,7 +49,7 @@ static int smtp_open(struct query *ctl) /* try to open a socket to the appropriate SMTP server for this query */ { /* maybe it's time to close the socket in order to force delivery */ - if (NUM_NONZERO(ctl->batchlimit) && (ctl->smtp_socket != -1) && batchcount++ == ctl->batchlimit) + if (NUM_NONZERO(ctl->batchlimit) && (ctl->smtp_socket != -1) && ++batchcount == ctl->batchlimit) { close(ctl->smtp_socket); ctl->smtp_socket = -1; |