From: Timo Sirainen Date: Sat, 14 Oct 2017 09:54:18 +0000 (+0300) Subject: doveadm proxy: Don't crash if remote doesn't support log proxying X-Git-Tag: 2.3.0.rc1~837 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=187fbf157d5c42f9f06ce52884fefbb4f66c070d;p=thirdparty%2Fdovecot%2Fcore.git doveadm proxy: Don't crash if remote doesn't support log proxying --- diff --git a/src/doveadm/server-connection.c b/src/doveadm/server-connection.c index 8776b39ab5..fa12d629d5 100644 --- a/src/doveadm/server-connection.c +++ b/src/doveadm/server-connection.c @@ -413,7 +413,8 @@ static bool server_connection_input_one(struct server_connection *conn) return FALSE; /* check logs */ - (void)server_connection_print_log(conn); + if (conn->log_input != NULL) + (void)server_connection_print_log(conn); switch (conn->state) { case SERVER_REPLY_STATE_DONE: