* check pointer before accessing it
* fix probably uninitialized case
* possible ways here:
* - connection timeout
* -
- */
- SendMsg->pCurrRelay = SendMsg->pCurrRelay->Next;
+ */
+ if (SendMsg->pCurrRelay != NULL)
+ SendMsg->pCurrRelay = SendMsg->pCurrRelay->Next;
if (SendMsg->pCurrRelay == NULL)
return eAbort;
void SMTPSetTimeout(eNextState NextTCPState, SmtpOutMsg *pMsg)
{
+ double Timeout = 0.0;
+
CtdlLogPrintf(CTDL_DEBUG, "SMTP: %s\n", __FUNCTION__);
- double Timeout;
+
switch (NextTCPState) {
case eSendReply:
case eSendMore: