From: Aki Tuomi Date: Tue, 7 Feb 2017 11:19:17 +0000 (+0200) Subject: lib: Check that output max size is non-zero when version specified X-Git-Tag: 2.3.0.rc1~2159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e675de58a30e18fc973d4f0203ed3a4175c8ac5;p=thirdparty%2Fdovecot%2Fcore.git lib: Check that output max size is non-zero when version specified Otherwise we try to send version to non-existent output stream. --- diff --git a/src/lib/connection.c b/src/lib/connection.c index 08556af688..26340ee830 100644 --- a/src/lib/connection.c +++ b/src/lib/connection.c @@ -425,7 +425,8 @@ connection_list_init(const struct connection_settings *set, set->input_full_behavior != CONNECTION_BEHAVIOR_ALLOW); i_assert(set->major_version == 0 || (set->service_name_in != NULL && - set->service_name_out != NULL)); + set->service_name_out != NULL && + set->output_max_size != 0)); list = i_new(struct connection_list, 1); list->set = *set;