From: Wilfried Goesgens Date: Thu, 17 Nov 2011 19:00:48 +0000 (+0100) Subject: increase array of error messages X-Git-Tag: v8.11~386 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=59f94195209a14588c0d6187d372f29123ae2c42 increase array of error messages --- diff --git a/citadel/modules/smtp/smtp_clienthandlers.c b/citadel/modules/smtp/smtp_clienthandlers.c index f83dbdc02..1a64bc0d8 100644 --- a/citadel/modules/smtp/smtp_clienthandlers.c +++ b/citadel/modules/smtp/smtp_clienthandlers.c @@ -438,7 +438,7 @@ const double SMTP_C_SendTimeouts[eMaxSMTPC] = { 30. /* QUIT */ }; -const ConstStr ReadErrors[eMaxSMTPC] = { +const ConstStr ReadErrors[eMaxSMTPC + 1] = { {HKEY("Connection broken during SMTP conversation")}, {HKEY("Connection broken during SMTP EHLO")}, {HKEY("Connection broken during SMTP HELO")}, @@ -447,6 +447,8 @@ const ConstStr ReadErrors[eMaxSMTPC] = { {HKEY("Connection broken during SMTP RCPT")}, {HKEY("Connection broken during SMTP DATA")}, {HKEY("Connection broken during SMTP message transmit")}, + {HKEY("")},/* quit reply, don't care. */ + {HKEY("")},/* quit reply, don't care. */ {HKEY("")}/* quit reply, don't care. */ }; diff --git a/citadel/modules/smtp/smtp_clienthandlers.h b/citadel/modules/smtp/smtp_clienthandlers.h index 57ade0c60..114da94e7 100644 --- a/citadel/modules/smtp/smtp_clienthandlers.h +++ b/citadel/modules/smtp/smtp_clienthandlers.h @@ -52,7 +52,7 @@ typedef eNextState (*SMTPSendHandler)(SmtpOutMsg *Msg); SMTPReadHandler ReadHandlers[eMaxSMTPC]; SMTPSendHandler SendHandlers[eMaxSMTPC]; -const ConstStr ReadErrors[eMaxSMTPC]; +const ConstStr ReadErrors[eMaxSMTPC+1]; const double SMTP_C_ReadTimeouts[eMaxSMTPC]; const double SMTP_C_SendTimeouts[eMaxSMTPC]; const double SMTP_C_ConnTimeout;