From: chris mikkelson Date: Wed, 25 Mar 2009 04:52:59 +0000 (-0500) Subject: Initialize connection state -- otherwise reclaimed connections X-Git-Url: https://git.mikk.net/?a=commitdiff_plain;h=ad510b936883b23f545f14f257155aad14e9bae2;p=smtpsink Initialize connection state -- otherwise reclaimed connections were all in state SMTP_CLOSED, and would be closed immediately... --- diff --git a/conn_pool.c b/conn_pool.c index aca603f..3a44436 100644 --- a/conn_pool.c +++ b/conn_pool.c @@ -121,6 +121,7 @@ listener_loop(void *data) c->fd = fd; io_initconn(c); greeting(c); + c->state = SMTP_GREET; if (c->wdata.s) { c->event = EV_WRITE; } else {