diff options
author | 2013-04-30 06:53:07 +0000 | |
---|---|---|
committer | 2013-04-30 06:53:07 +0000 | |
commit | 024ee4aad0bc0251e1598e187885a0fda9a0f096 (patch) | |
tree | e7624dbfce48a1d3cf94d8a0b0a74102d0d48ded /lib/libc | |
parent | ignore SIGPIPE so we don't fall over if an ldap connection breaks (diff) | |
download | wireguard-openbsd-024ee4aad0bc0251e1598e187885a0fda9a0f096.tar.xz wireguard-openbsd-024ee4aad0bc0251e1598e187885a0fda9a0f096.zip |
copy input flags in result addrinfo structures.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/asr/getaddrinfo_async.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/asr/getaddrinfo_async.c b/lib/libc/asr/getaddrinfo_async.c index 0d24162f906..68824865714 100644 --- a/lib/libc/asr/getaddrinfo_async.c +++ b/lib/libc/asr/getaddrinfo_async.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getaddrinfo_async.c,v 1.15 2013/04/08 08:24:56 chrisz Exp $ */ +/* $OpenBSD: getaddrinfo_async.c,v 1.16 2013/04/30 06:53:07 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -518,6 +518,7 @@ addrinfo_add(struct async *as, const struct sockaddr *sa, const char *cname) ai->ai_family = sa->sa_family; ai->ai_socktype = matches[i].socktype; ai->ai_protocol = proto; + ai->ai_flags = as->as.ai.hints.ai_flags; ai->ai_addrlen = sa->sa_len; ai->ai_addr = (void *)(ai + 1); if (cname && |