This commit is contained in:
Miek Gieben 2012-10-10 22:17:50 +02:00
parent 7ca43a2a3f
commit dce8b2e71a
4 changed files with 5 additions and 5 deletions

View File

@ -621,7 +621,7 @@ func TestSRVPacking(t *testing.T) {
}
_, err := msg.Pack()
if err != nil{
if err != nil {
t.Fatalf("Couldn't pack %v\n", msg)
}
}

View File

@ -303,7 +303,7 @@ func stripTsig(msg []byte) ([]byte, *RR_TSIG, error) {
rr := new(RR_TSIG)
off := 0
tsigoff := 0
if off, err = UnpackStruct(&dh, msg, off); err !=nil {
if off, err = UnpackStruct(&dh, msg, off); err != nil {
return nil, nil, err
}
if dh.Arcount == 0 {