]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Fixed previous change to make sure it doesn't crash on error handling.
authorTimo Sirainen <tss@iki.fi>
Mon, 2 Jul 2012 07:12:59 +0000 (10:12 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 2 Jul 2012 07:12:59 +0000 (10:12 +0300)
src/lmtp/lmtp-proxy.c

index 9f7478caed452931a85dbb138c9a840282995f78..e51545bab133547e409356fb54c64c76bd54f9e2 100644 (file)
@@ -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;