Re: DNSBL: %s: Unknown Error responses for new RBL

David Leadbeater <[email protected]>
Newsgroups gmane.network.irc.bopm
Message-ID <[email protected]>
On 3 Jun 2005, at 02:29, Snowy Angelique Maslov aka 'Snowpony' wrote:
> Indeed it would.  This however does not solve the error problem that I 
> am seeing.  I imagine there are bound to be other RBLs that may return 
> a TXT value on any sort of query instead of nothing at all.   If this 
> is the case then any of these RBLs would be hard to use with bopm.   
> Unless of course I've missed some configuration setting and am an 
> idiot which of course is not completely out of the question ;).

Patch attached (apply to BOPM source with patch -p0 < 
fdns-other-data.diff).



David
fdns-other-data.diff (application/octet-stream, 572 B)
Index: src/firedns.c
===================================================================
RCS file: /data/cvs/bopm/src/firedns.c,v
retrieving revision 1.21
diff -u -r1.21 firedns.c
--- src/firedns.c	12 Jan 2004 18:12:48 -0000	1.21
+++ src/firedns.c	3 Jun 2005 12:54:25 -0000
@@ -625,9 +625,11 @@
       goto cleanup;
    }
    h.ancount = ntohs(h.ancount);
-   if (h.ancount < 1)
+   if (h.ancount < 1) {
+      fdns_errno = FDNS_ERR_NXDOMAIN;
    /* no sense going on if we don't have any answers */
       goto cleanup;
+   }
    /* skip queries */
    i = 0;
    q = 0;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.