summaryrefslogtreecommitdiff
path: root/tests/unit/unit1653.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-04-30 16:59:08 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-05-02 09:51:40 +0200
commit69e91a42e1d1bb4e58d8c644701afb13b8b16907 (patch)
tree526d4e5e029038d32b734380cd2bef408c19bd3a /tests/unit/unit1653.c
parent87a1a25696e79247219888f9599e0ad342178a20 (diff)
downloadcurl-bagder/parse-ipv6-scopeid.tar.gz
urlapi: strip off scope id from numerical IPv6 addressesbagder/parse-ipv6-scopeid
... to make the host name "usable". Store the scope id and put it back when extracting a URL out of it. Also makes curl_url_set() syntax check CURLUPART_HOST. Fixes #3817 Closes #3822
Diffstat (limited to 'tests/unit/unit1653.c')
-rw-r--r--tests/unit/unit1653.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/unit1653.c b/tests/unit/unit1653.c
index 2f7ccd5ca..c5d8f3b3a 100644
--- a/tests/unit/unit1653.c
+++ b/tests/unit/unit1653.c
@@ -168,7 +168,7 @@ UNITTEST_START
u = curl_url();
if(!u)
goto fail;
- ipv6port = strdup("[fe80::250:56ff:fea7:da15%!25eth3]:80");
+ ipv6port = strdup("[fe80::250:56ff:fea7:da15!25eth3]:80");
if(!ipv6port)
goto fail;
ret = Curl_parse_port(u, ipv6port);
@@ -184,7 +184,7 @@ UNITTEST_START
if(!ipv6port)
goto fail;
ret = Curl_parse_port(u, ipv6port);
- fail_unless(ret != CURLUE_OK, "Curl_parse_port returned non-error");
+ fail_unless(ret == CURLUE_OK, "Curl_parse_port returned error");
fail:
free(ipv6port);
curl_url_cleanup(u);