Use RawSetId here

This commit is contained in:
Miek Gieben 2011-08-24 15:52:53 +02:00
parent 6eabda897c
commit 00bd39bc12
1 changed files with 1 additions and 2 deletions

View File

@ -91,8 +91,7 @@ func checkcache(m *dns.Msg) (o []byte) {
o = cache.lookup(m)
if o != nil {
// octet 1 and 2 contain the Id, set the one for the current pkt
o[0] = byte(m.MsgHdr.Id >> 8)
o[1] = byte(m.MsgHdr.Id)
dns.RawSetId(o, 0, m.MsgHdr.Id)
return
}