diff options
| author | toppk <toppk@bllue.org> | 2018-04-14 16:13:58 -0400 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-04-14 13:13:58 -0700 |
| commit | 5e0f46df15682c27cf42c5dba8f7967119fe9f21 (patch) | |
| tree | 947eb04c17bbf1eb7ea70e48e52e6cc4483ed80a /src | |
| parent | 5dfd550c68284438aeaacbaef815fc7d2f75f068 (diff) | |
| download | nng-5e0f46df15682c27cf42c5dba8f7967119fe9f21.tar.gz nng-5e0f46df15682c27cf42c5dba8f7967119fe9f21.tar.bz2 nng-5e0f46df15682c27cf42c5dba8f7967119fe9f21.zip | |
fixes bad address tests in tcp and tls (#345)
* 127.0.0.1.32 is treated as a hostname, returns EAI_NODATA on my fedora 27 box
* since this is not in POSIX, and deprecated from some libc resolvers
protect with an ifdef
Diffstat (limited to 'src')
| -rw-r--r-- | src/platform/posix/posix_resolv_gai.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platform/posix/posix_resolv_gai.c b/src/platform/posix/posix_resolv_gai.c index 496fb97b..f3ac7a19 100644 --- a/src/platform/posix/posix_resolv_gai.c +++ b/src/platform/posix/posix_resolv_gai.c @@ -98,6 +98,9 @@ nni_posix_gai_errno(int rv) return (nni_plat_errno(errno)); case EAI_NONAME: +#ifdef EAI_NODATA + case EAI_NODATA: +#endif case EAI_SERVICE: return (NNG_EADDRINVAL); |
