summaryrefslogtreecommitdiff
path: root/lib/libc/asr
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2014-02-17 10:49:54 +0000
committerEric Faurot <eric@cvs.openbsd.org>2014-02-17 10:49:54 +0000
commit3115262ad87bc3b9d3f32c3f58f8ea380681ebaf (patch)
tree08dea64af136bdfc796a487084e199f4c005eb36 /lib/libc/asr
parent6404b8433fe9960d71690e76fa9daebf167a781e (diff)
report extra PTR records as aliases
Diffstat (limited to 'lib/libc/asr')
-rw-r--r--lib/libc/asr/gethostnamadr_async.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/asr/gethostnamadr_async.c b/lib/libc/asr/gethostnamadr_async.c
index 41bd558c760..4a28b63f098 100644
--- a/lib/libc/asr/gethostnamadr_async.c
+++ b/lib/libc/asr/gethostnamadr_async.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gethostnamadr_async.c,v 1.23 2013/11/24 23:51:29 deraadt Exp $ */
+/* $OpenBSD: gethostnamadr_async.c,v 1.24 2014/02/17 10:49:53 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -505,8 +505,7 @@ hostent_from_packet(int reqtype, int family, char *pkt, size_t pktlen)
if (strcasecmp(rr.rr_dname, dname) != 0)
continue;
if (hostent_set_cname(h, rr.rr.ptr.ptrname, 1) == -1)
- goto fail;
- /* XXX See if we need MULTI_PTRS_ARE_ALIASES */
+ hostent_add_alias(h, rr.rr.ptr.ptrname, 1);
break;
case T_A: