Mercurial > dovecot > original-hg > imaptest
changeset 286:33ed8dcb0770
Don't crash if we can't connect to server.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 02 Sep 2012 16:56:09 +0300 |
parents | 7322fc53b0ac |
children | d6efca1d4f68 |
files | src/client.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/client.c Fri Aug 31 15:43:40 2012 +0300 +++ b/src/client.c Sun Sep 02 16:56:09 2012 +0300 @@ -771,7 +771,8 @@ mailbox_storage_unref(&storage); test_execute_cancel_by_client(client); } - imap_parser_unref(&client->parser); + if (client->parser != NULL) + imap_parser_unref(&client->parser); if (client->capabilities_list != NULL) p_strsplit_free(default_pool, client->capabilities_list);