diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/network/lookup_name.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/lookup_name.c b/src/network/lookup_name.c index df9e623e..fb7b5c12 100644 --- a/src/network/lookup_name.c +++ b/src/network/lookup_name.c @@ -152,7 +152,8 @@ static int name_from_dns(struct address buf[static MAXADDRS], char canon[static if (ctx.cnt) return ctx.cnt; if (alens[0] < 4 || (abuf[0][3] & 15) == 2) return EAI_AGAIN; - if ((abuf[0][3] & 15) == 3) return EAI_NONAME; + if ((abuf[0][3] & 15) == 0) return EAI_NONAME; + if ((abuf[0][3] & 15) == 3) return 0; return EAI_FAIL; } |