summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2004-06-21 17:07:01 +0000
committeritojun <itojun@openbsd.org>2004-06-21 17:07:01 +0000
commit94c946ba331659a377d9c6bea137e79117fe171d (patch)
tree2b65314c60e9f47e3a5a867001185acad61fc55b
parentuse getaddr/nameinfo for address resolution. beck, henning ok (diff)
downloadwireguard-openbsd-94c946ba331659a377d9c6bea137e79117fe171d.tar.xz
wireguard-openbsd-94c946ba331659a377d9c6bea137e79117fe171d.zip
restrict address resolution to AF_INET for now
-rw-r--r--libexec/spamd/grey.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/spamd/grey.c b/libexec/spamd/grey.c
index c3694aee3f8..fddf5d7d153 100644
--- a/libexec/spamd/grey.c
+++ b/libexec/spamd/grey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grey.c,v 1.13 2004/06/21 17:05:43 itojun Exp $ */
+/* $OpenBSD: grey.c,v 1.14 2004/06/21 17:07:01 itojun Exp $ */
/*
* Copyright (c) 2004 Bob Beck. All rights reserved.
@@ -153,6 +153,7 @@ addwhiteaddr(char *addr)
struct addrinfo hints, *res;
memset(&hints, 0, sizeof(hints));
+ hints.ai_family = AF_INET; /*for now*/
hints.ai_socktype = SOCK_DGRAM; /*dummy*/
hints.ai_protocol = IPPROTO_UDP; /*dummy*/
hints.ai_flags = AI_NUMERICHOST;
@@ -374,6 +375,7 @@ greyreader(void)
struct addrinfo hints, *res;
memset(&hints, 0, sizeof(hints));
+ hints.ai_family = AF_INET; /*for now*/
hints.ai_socktype = SOCK_DGRAM; /*dummy*/
hints.ai_protocol = IPPROTO_UDP; /*dummy*/
hints.ai_flags = AI_NUMERICHOST;