make getaddrinfo return error if both host and service name are null
authorRich Felker <dalias@aerifal.cx>
Fri, 25 Sep 2015 01:01:11 +0000 (01:01 +0000)
committerRich Felker <dalias@aerifal.cx>
Fri, 25 Sep 2015 01:03:36 +0000 (01:03 +0000)
commit06bcf9bc941a2f3bf34ac4468644d9693802495b
tree9b01f6cbffb7673a7140d8f763e7b86dcd4fc802
parentb4d94ba40dda0fa0c3f499beed51b55ad31d5305
make getaddrinfo return error if both host and service name are null

this case is specified as a mandatory ("shall fail") error.

based on patch by Julien Ramseier.
src/network/getaddrinfo.c