/*
- * $Id: dns_internal.cc,v 1.92 2006/08/25 12:42:57 serassio Exp $
+ * $Id: dns_internal.cc,v 1.93 2006/09/18 23:17:19 hno Exp $
*
* DEBUG: section 78 DNS lookups; interacts with lib/rfc1035.c
* AUTHOR: Duane Wessels
const char *ip = inet_ntoa(addr);
- if (idnsCachedLookup(ip, callback, data))
- return;
-
q = cbdataAlloc(idns_query);
q->id = idnsQueryID();
return;
}
+ if (idnsCachedLookup(q->query.name, callback, data)) {
+ cbdataFree(q);
+ return;
+ }
+
debug(78, 3) ("idnsPTRLookup: buf is %d bytes for %s, id = %#hx\n",
(int) q->sz, ip, q->id);