# HG changeset patch # User Timo Sirainen # Date 1507974858 -10800 # Node ID cf66220d281eee6797534055025f18d35e24f524 # Parent bb127acc6c9b33f6aec4e4ba98e2bc62f470d682 doveadm proxy: Don't crash if remote doesn't support log proxying diff -r bb127acc6c9b -r cf66220d281e src/doveadm/server-connection.c --- 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: