]> granicus.if.org Git - curl/commit
connect: improve the bind error message
authorJay Satiro <raysatiro@yahoo.com>
Thu, 23 Nov 2017 07:47:26 +0000 (02:47 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 23 Nov 2017 07:47:26 +0000 (02:47 -0500)
commit31f18d27224f65249e719d87f5a5109378b3e420
treee31139adffb972c3d9889a264280c734607bb767
parented22d8654b4e010e6eccec395e9ea93ac8ef0844
connect: improve the bind error message

eg consider a non-existent interface eth8, curl --interface eth8

Before: curl: (45) Could not resolve host: eth8
After: curl: (45) Couldn't bind to 'eth8'

Bug: https://github.com/curl/curl/issues/2104
Reported-by: Alfonso Martone
lib/connect.c