Mercurial > dovecot > core-2.2
diff src/doveadm/server-connection.c @ 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 | a3632f4d817f |
children | cb108f786fb4 |
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: