core: getaddrinfo() lookup error handling
Merge pull request #244 from plutooo/master

core: getaddrinfo() lookup error handling