From: Timo Sirainen Date: Mon, 2 Jul 2012 07:12:59 +0000 (+0300) Subject: lmtp: Fixed previous change to make sure it doesn't crash on error handling. X-Git-Tag: 2.1.8~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d9b15220432c14f7c71613d051e6070511af426a;p=thirdparty%2Fdovecot%2Fcore.git lmtp: Fixed previous change to make sure it doesn't crash on error handling. --- diff --git a/src/lmtp/lmtp-proxy.c b/src/lmtp/lmtp-proxy.c index 9f7478caed..e51545bab1 100644 --- a/src/lmtp/lmtp-proxy.c +++ b/src/lmtp/lmtp-proxy.c @@ -230,7 +230,8 @@ lmtp_proxy_conn_data(bool success ATTR_UNUSED, const char *reply, void *context) i_assert(rcpt->reply != NULL); /* reset timeout in case there are a lot of RCPT TOs */ - timeout_reset(conn->to); + if (conn->to != NULL) + timeout_reset(conn->to); rcpt->reply = p_strdup(conn->proxy->pool, reply); rcpt->data_reply_received = TRUE;