OSDN Git Service

getaddrinfo.c: fix incorrect check for ERANGE from gethostbyaddr_r
authorDenys Vlasenko <dvlasenk@redhat.com>
Tue, 3 May 2011 15:29:35 +0000 (17:29 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Tue, 3 May 2011 15:29:35 +0000 (17:29 +0200)
commit408763f32676fa60e74cb202486be4b17a43974e
tree8608b4814dd829255afc842fb6741407f112fc08
parent05238889b2851aafda667b4d5e3b7e627ea2bed6
getaddrinfo.c: fix incorrect check for ERANGE from gethostbyaddr_r

Also, freeaddrinfo(NULL) is ok, no need to check parameted for NULL
before calling it.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
libc/inet/getaddrinfo.c