Mercurial > dovecot > core-2.2
changeset 22614:cf66220d281e
doveadm proxy: Don't crash if remote doesn't support log proxying
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sat, 14 Oct 2017 12:54:18 +0300 |
parents | bb127acc6c9b |
children | ac7bd203229d |
files | src/doveadm/server-connection.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/server-connection.c Fri Oct 13 12:34:01 2017 +0300 +++ b/src/doveadm/server-connection.c Sat Oct 14 12:54:18 2017 +0300 @@ -402,7 +402,8 @@ 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: