]> git.ipfire.org Git - thirdparty/curl.git/commit
urlapi: detect and error on illegal IPv4 addresses
authorDaniel Stenberg <daniel@haxx.se>
Wed, 5 Apr 2023 21:13:33 +0000 (23:13 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 6 Apr 2023 07:02:00 +0000 (09:02 +0200)
commit17a15d884677e72d1f23c9249365e88af375f04a
tree52c02c6be9840cb1a5e90613518e45f37548a547
parent98fac31b0613fc8cb88709a78c816d38d715fe11
urlapi: detect and error on illegal IPv4 addresses

Using bad numbers in an IPv4 numerical address now returns
CURLUE_BAD_HOSTNAME.

I noticed while working on trurl and it was originally reported here:
https://github.com/curl/trurl/issues/78

Updated test 1560 accordingly.

Closes #10894
lib/urlapi.c
tests/libtest/lib1560.c