diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-06-30 15:25:45 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-06-30 15:25:45 +0200 |
commit | dcf1541c4bf2732f0e31c24c4b368da930f6eac2 (patch) | |
tree | 8548c73cc376d31e5d89df9b4121638204c8868b /src/tc-socket.c | |
parent | 2543e1e9838e03adb7f4a811815d34ccf65a3026 (diff) | |
parent | 5c5ce3e94f43e46a1e0420f1356abca7d3672c34 (diff) |
Merge branch 'release/debian/4.23-1'debian/4.23-1
Diffstat (limited to 'src/tc-socket.c')
-rw-r--r-- | src/tc-socket.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tc-socket.c b/src/tc-socket.c index 3cdeb90..2c140a1 100644 --- a/src/tc-socket.c +++ b/src/tc-socket.c @@ -17,6 +17,7 @@ static int t_parse(void) { char host[32] = "bogus"; + uint16_t port = 4321; if (HX_addrport_split("[::1]", host, sizeof(host), nullptr) != 1 || strcmp(host, "::1") != 0) return 1; @@ -26,6 +27,9 @@ static int t_parse(void) if (HX_addrport_split("", host, sizeof(host), nullptr) != 1 || strcmp(host, "") != 0) return 1; + if (HX_addrport_split("[]:", host, sizeof(host), &port) != 1 || + strcmp(host, "") != 0 || port != 0) + return 1; return 0; } |