Merge pull request #187 from flebarbe/master

Fix TSig check on second DNS message (TCP) #180
This commit is contained in:
Miek Gieben 2015-02-24 15:14:24 +00:00
commit 7698225860
1 changed files with 1 additions and 0 deletions

1
xfr.go
View File

@ -193,6 +193,7 @@ func (t *Transfer) ReadMsg() (*Msg, error) {
}
// Need to work on the original message p, as that was used to calculate the tsig.
err = TsigVerify(p, t.TsigSecret[ts.Hdr.Name], t.tsigRequestMAC, t.tsigTimersOnly)
t.tsigRequestMAC = ts.MAC
}
return m, err
}