Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] milter-greylist 2.1.11

2006-08-01 by Hajimu UMEMOTO

Hi,

>>> Wed, 02 Aug 2006 01:57:54 +0900,
>>> Hajimu UMEMOTO <ume@...> said:

ume> Oops, I was confused.  You didn't disable IPv6 DNSRBL query,
ume> correctly.  We need to test sa.  Please throw my previous patch away,
ume> and use this patch instead.

One more patch, please.

Index: dnsrbl.c
diff -u -p dnsrbl.c.orig dnsrbl.c
--- dnsrbl.c.orig	Wed Aug  2 03:58:36 2006
+++ dnsrbl.c	Wed Aug  2 04:03:41 2006
@@ -69,8 +69,6 @@ __RCSID("$Id: dnsrbl.c,v 1.10 2006/07/31
 #define res_ndestroy(res)	res_nclose(res)
 #endif
 #else
-#define	res_ninit(res) \
-	((_res.options & RES_INIT) == 0 && res_init())
 #define res_nquery(res, req, class, type, ans, anslen)	\
 	res_query(req, class, type, ans, anslen)
 #define res_ndestroy(res)
@@ -142,8 +140,11 @@ dnsrbl_check_source(sa, salen, source)
 
 #ifdef HAVE_RESN
 	bzero(&res, sizeof(res));
+	if (res_ninit(&res) != 0)
+#else
+	if ((_res.options & RES_INIT) == 0 && res_init() != 0)
 #endif
-	if (res_ninit(&res) != 0) {
+	{
 		syslog(LOG_ERR, "res_ninit failed: %s", strerror(errno));
 		return -1;
 	}

Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@...  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.