diff options
Diffstat (limited to 'proxy.c')
| -rw-r--r-- | proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -507,7 +507,7 @@ static int scan_ip6_port(const char *src, ot_ip6 ip, uint16_t *port) { | |||
| 507 | ++s; | 507 | ++s; |
| 508 | if (*s == '[') | 508 | if (*s == '[') |
| 509 | ++s, ++bracket; /* for v6 style notation */ | 509 | ++s, ++bracket; /* for v6 style notation */ |
| 510 | if (!(off = ip_scan(s, ip))) | 510 | if (!(off = ip_parse(s, ip))) |
| 511 | return 0; | 511 | return 0; |
| 512 | s += off; | 512 | s += off; |
| 513 | if (*s == 0 || isspace(*s)) | 513 | if (*s == 0 || isspace(*s)) |
| @@ -522,7 +522,7 @@ static int scan_ip6_port(const char *src, ot_ip6 ip, uint16_t *port) { | |||
| 522 | if (*(s++) != ':') | 522 | if (*(s++) != ':') |
| 523 | return 0; | 523 | return 0; |
| 524 | } | 524 | } |
| 525 | if (!(off = scan_udec(s, &value, 65535))) | 525 | if (!(off = scan_uint(s, &value, 65535))) |
| 526 | return 0; | 526 | return 0; |
| 527 | *port = (uint16_t)value; | 527 | *port = (uint16_t)value; |
| 528 | return off + s - src; | 528 | return off + s - src; |
