Do not fail AXFR if first anwser is just SOA

This commit is contained in:
Pranay Kanwar 2013-07-11 12:12:32 +05:30
parent 91a457e0d8
commit 467e5fce1b
1 changed files with 6 additions and 0 deletions

6
xfr.go
View File

@ -69,6 +69,12 @@ func (w *reply) axfrIn(q *Msg, c chan *Envelope) {
return
}
first = !first
// only one answer that is SOA, receive more
if (len(in.Answer) == 1) {
w.tsigTimersOnly = true
c <- &Envelope{in.Answer, nil}
continue
}
}
if !first {