Merge pull request #51 from r4um/master

Do not fail AXFR if first anwser is just SOA
This commit is contained in:
Miek Gieben 2013-07-11 02:49:30 -07:00
commit 980f5e9d63
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 {