diff options
-rw-r--r-- | common/smtppass.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/smtppass.c b/common/smtppass.c index 7f7d8e6..f021a8b 100644 --- a/common/smtppass.c +++ b/common/smtppass.c @@ -551,13 +551,14 @@ static void* thread_main(void* arg) memset(&ctx, 0, sizeof(ctx)); - /* Assign a unique id to the connection */ - ctx.id = g_unique_id++; - ctx.server = -1; ctx.clam = -1; plock(); + /* Assign a unique id to the connection */ + ctx.id = g_unique_id++; + + /* Get the client socket */ ctx.client = thread->fd; punlock(); |