nxt_sockaddr.c (1935:ba08638c3259) nxt_sockaddr.c (2141:c820888cd98c)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 1076 unchanged lines hidden (view full) ---

1085
1086 if (p == NULL) {
1087
1088 /* single value port, address, or host name */
1089
1090 port = nxt_int_parse(host, length);
1091
1092 if (port > 0) {
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 1076 unchanged lines hidden (view full) ---

1085
1086 if (p == NULL) {
1087
1088 /* single value port, address, or host name */
1089
1090 port = nxt_int_parse(host, length);
1091
1092 if (port > 0) {
1093 if (port < 1 || port > 65535) {
1093 if (port > 65535) {
1094 goto invalid_port;
1095 }
1096
1097 /* "*:XX" */
1098 port = htons((in_port_t) port);
1099 jbs->resolve.port = (in_port_t) port;
1100
1101 } else {

--- 285 unchanged lines hidden ---
1094 goto invalid_port;
1095 }
1096
1097 /* "*:XX" */
1098 port = htons((in_port_t) port);
1099 jbs->resolve.port = (in_port_t) port;
1100
1101 } else {

--- 285 unchanged lines hidden ---