ndb/dns: ignore refused (5) error replies

This commit is contained in:
cinap_lenrek 2013-11-23 04:46:14 +01:00
parent 2f9ae0f8ac
commit c2319f37b4

View file

@ -1153,11 +1153,12 @@ procansw(Query *qp, DNSmsg *mp, int depth, Dest *p)
stats.negans++;
/* ignore any error replies */
if((mp->flags & Rmask) == Rserver){
switch(mp->flags & Rmask){
case Rrefused:
case Rserver:
stats.negserver++;
freeanswers(mp);
if(p != nil)
p->code = Rserver;
p->code = Rserver;
return Answerr;
}