From: Stephan Bosch Date: Mon, 31 Aug 2015 11:24:54 +0000 (+0300) Subject: Earlier in_port_t fix was ineffective due to one small detail. X-Git-Tag: 2.2.19.rc1~149 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0004409e743fceb77bc8dec3dba0199d7e19216e;p=thirdparty%2Fdovecot%2Fcore.git Earlier in_port_t fix was ineffective due to one small detail. The new SET_IN_PORT_ZERO did not actually use the new net_str2port_zero() function. --- diff --git a/src/lib-settings/settings-parser.c b/src/lib-settings/settings-parser.c index fe442c6b85..77582c128c 100644 --- a/src/lib-settings/settings-parser.c +++ b/src/lib-settings/settings-parser.c @@ -598,7 +598,7 @@ static int get_in_port_zero(struct setting_parser_context *ctx, const char *value, in_port_t *result_r) { - if (net_str2port(value, result_r) < 0) { + if (net_str2port_zero(value, result_r) < 0) { ctx->error = p_strdup_printf(ctx->parser_pool, "Invalid port number %s", value); return -1;