From 62824776c7693d116dbe5914ca6f1cb11d18262d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 21 Jul 2004 20:19:20 +0000 Subject: - Timeout gives a proper error message --- ChangeLog | 1 + common/smtppass.c | 2 +- src/clamsmtpd.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6ade187..8a1254c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 0.4 - Option for quarantining files with viruses - Fixed problem with returning wrong SMTP error code + - Timeout gives a proper error message 0.3 - Small log format changes diff --git a/common/smtppass.c b/common/smtppass.c index b66366c..5cc9c7f 100644 --- a/common/smtppass.c +++ b/common/smtppass.c @@ -626,7 +626,7 @@ static int smtp_passthru(clamsmtp_context_t* ctx) switch(select(FD_SETSIZE, &mask, NULL, NULL, &g_timeout)) { case 0: - message(ctx, LOG_ERR, "network operation timed out"); + messagex(ctx, LOG_ERR, "network operation timed out"); RETURN(-1); case -1: message(ctx, LOG_ERR, "couldn't select on sockets"); diff --git a/src/clamsmtpd.c b/src/clamsmtpd.c index b66366c..5cc9c7f 100644 --- a/src/clamsmtpd.c +++ b/src/clamsmtpd.c @@ -626,7 +626,7 @@ static int smtp_passthru(clamsmtp_context_t* ctx) switch(select(FD_SETSIZE, &mask, NULL, NULL, &g_timeout)) { case 0: - message(ctx, LOG_ERR, "network operation timed out"); + messagex(ctx, LOG_ERR, "network operation timed out"); RETURN(-1); case -1: message(ctx, LOG_ERR, "couldn't select on sockets"); -- cgit v1.2.3