summaryrefslogtreecommitdiff
path: root/mail/exim3/patches/patch-ao
blob: 735d6f43d7bfb366f6ca2b32d997d88d75336797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ao,v 1.1 2006/03/06 22:49:16 joerg Exp $

--- src/lookups/dnsdb.c.orig	2006-02-14 16:38:38.000000000 +0100
+++ src/lookups/dnsdb.c
@@ -116,7 +116,7 @@ if (equals != NULL)
 /* If the type is PTR, we have to construct the relevant magic lookup
 key. */
 
-if (type == T_PTR)
+if (type == T_PTR && string_is_ip_address(keystring, NULL))
   {
   char *p = keystring + (int)strlen(keystring);
   char *pp = buffer;