diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2004-06-21 17:07:02 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2004-06-21 17:07:02 +0000 |
commit | 3aa1d2ac37c8607fb145fe046598cba9653cc87e (patch) | |
tree | 9ba1c77c6addde2f09242300ec8fafb9d5fdf5b2 /libexec/spamd/grey.c | |
parent | 83e2b5e2dcfbef9059817c203f316a4d3e255098 (diff) |
restrict address resolution to AF_INET for now
Diffstat (limited to 'libexec/spamd/grey.c')
-rw-r--r-- | libexec/spamd/grey.c | 4 |
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; |