diff options
author | 2014-02-17 10:49:53 +0000 | |
---|---|---|
committer | 2014-02-17 10:49:53 +0000 | |
commit | e7643b50c78f543e06137a9252d2c1bdd456d237 (patch) | |
tree | c26aab735e7d9d2838c34a37ecf2f507a94f134a /lib/libc | |
parent | list the speeds, since thats how most people think about these things. (diff) | |
download | wireguard-openbsd-e7643b50c78f543e06137a9252d2c1bdd456d237.tar.xz wireguard-openbsd-e7643b50c78f543e06137a9252d2c1bdd456d237.zip |
report extra PTR records as aliases
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/asr/gethostnamadr_async.c | 5 |
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: |