]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Earlier in_port_t fix was ineffective due to one small detail.
authorStephan Bosch <stephan@rename-it.nl>
Mon, 31 Aug 2015 11:24:54 +0000 (14:24 +0300)
committerStephan Bosch <stephan@rename-it.nl>
Mon, 31 Aug 2015 11:24:54 +0000 (14:24 +0300)
The new SET_IN_PORT_ZERO did not actually use the new net_str2port_zero() function.

src/lib-settings/settings-parser.c

index fe442c6b85b02345818e76ccc3bdf542e6056b99..77582c128c864272662f29bd36a1b4fc0448859c 100644 (file)
@@ -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;