diff options
author | Stef Walter <stef@memberwebs.com> | 2004-09-03 01:36:15 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-09-03 01:36:15 +0000 |
commit | a6e0583b04873a0643430988d4071ef972c3d813 (patch) | |
tree | 30d2ae12f9cdfe92746fea8d38e4bb24b796919f /common | |
parent | 4375d1aefd0f484a50c5d6773d71ac62bc01e44c (diff) |
Wraps on the unique id should skip 0
Diffstat (limited to 'common')
-rw-r--r-- | common/smtppass.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/smtppass.c b/common/smtppass.c index 4ffb003..a9e8f9d 100644 --- a/common/smtppass.c +++ b/common/smtppass.c @@ -575,6 +575,10 @@ static void* thread_main(void* arg) plock(); /* Assign a unique id to the connection */ ctx->id = g_unique_id++; + + /* We don't care about wraps, but we don't want zero */ + if(g_unique_id == 0) + g_unique_id++; punlock(); ctx->client.fd = fd; |