diff options
| author | Garrett D'Amore <garrett@damore.org> | 2019-02-22 16:02:29 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2019-02-23 11:49:28 -0800 |
| commit | d210ef96517c1462bc058c95bced8c27b5e19c4f (patch) | |
| tree | 1129ceba9e6f774716a3b18f6225fe2f3541d0eb | |
| parent | b26fc00bd1a8e83aabf7a6c1735d911b9d253d84 (diff) | |
| download | nng-d210ef96517c1462bc058c95bced8c27b5e19c4f.tar.gz nng-d210ef96517c1462bc058c95bced8c27b5e19c4f.tar.bz2 nng-d210ef96517c1462bc058c95bced8c27b5e19c4f.zip | |
fixes #891 Need to handle more getaddrinfo() error codes
| -rw-r--r-- | src/platform/posix/posix_resolv_gai.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/platform/posix/posix_resolv_gai.c b/src/platform/posix/posix_resolv_gai.c index bb6db188..b082eac6 100644 --- a/src/platform/posix/posix_resolv_gai.c +++ b/src/platform/posix/posix_resolv_gai.c @@ -111,6 +111,16 @@ posix_gai_errno(int rv) case EAI_SOCKTYPE: return (NNG_ENOTSUP); +#ifdef EAI_CANCELED + case EAI_CANCELED: + return (NNG_ECANCELED); +#endif + +#ifdef EAI_AGAIN + case EAI_AGAIN: + return (NNG_EAGAIN); +#endif + default: return (NNG_ESYSERR + rv); } |
