pike.git/
lib/
modules/
Protocols.pmod/
DNS.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2010-11-19
2010-11-19 15:05:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>
5154071e24bc472a5a2e3300ee9c04bd57b6affb (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added note about possibly spoofed answers.
1426:
if(m->port != 53 || !has_value(nameservers, m->ip)) return; sscanf(m->data,"%2c",int id); object r=requests[id];
-
if(!r) return;
+
if(!r)
{
+
// Invalid request id. Spoofed answer?
+
// FIXME: Consider black- or greylisting the answer.
+
return;
+
}
m_delete(requests,id); r->callback(r->domain,decode_res(m->data),@r->args); destruct(r);