struct embedding
This commit is contained in:
parent
09e07339e6
commit
9fd69abe09
6
nsecx.go
6
nsecx.go
|
@ -204,7 +204,7 @@ func (m *Msg) Nsec3Verify(q Question) (int, error) {
|
|||
}
|
||||
}
|
||||
if !ncdenied {
|
||||
if m.MsgHdr.Rcode == RcodeNameError {
|
||||
if m.Rcode == RcodeNameError {
|
||||
// For NXDOMAIN this is a problem
|
||||
return 0, ErrDenialNc // add next closer name here
|
||||
}
|
||||
|
@ -222,7 +222,7 @@ func (m *Msg) Nsec3Verify(q Question) (int, error) {
|
|||
return 0, ErrDenialSo
|
||||
}
|
||||
// The message headers claims something different!
|
||||
if m.MsgHdr.Rcode != RcodeNameError {
|
||||
if m.Rcode != RcodeNameError {
|
||||
return 0, ErrDenialHdr
|
||||
}
|
||||
|
||||
|
@ -255,7 +255,7 @@ NoData:
|
|||
}
|
||||
}
|
||||
}
|
||||
if m.MsgHdr.Rcode == RcodeNameError {
|
||||
if m.Rcode == RcodeNameError {
|
||||
return 0, ErrDenialHdr
|
||||
}
|
||||
return _NSEC3_NODATA, nil
|
||||
|
|
2
tsig.go
2
tsig.go
|
@ -191,7 +191,7 @@ func TsigGenerate(m *Msg, secret, requestMAC string, timersOnly bool) ([]byte, s
|
|||
t.Fudge = rr.Fudge
|
||||
t.TimeSigned = rr.TimeSigned
|
||||
t.Algorithm = rr.Algorithm
|
||||
t.OrigId = m.MsgHdr.Id
|
||||
t.OrigId = m.Id
|
||||
|
||||
tbuf := make([]byte, t.Len())
|
||||
if off, ok := PackRR(t, tbuf, 0, nil, false); ok {
|
||||
|
|
2
xfr.go
2
xfr.go
|
@ -180,7 +180,7 @@ func XfrSend(w ResponseWriter, q *Msg, c chan *XfrToken, e *error) error {
|
|||
func axfrSend(w ResponseWriter, req *Msg, c chan *XfrToken, e *error) {
|
||||
rep := new(Msg)
|
||||
rep.SetReply(req)
|
||||
rep.MsgHdr.Authoritative = true
|
||||
rep.Authoritative = true
|
||||
|
||||
for x := range c {
|
||||
// assume it fits
|
||||
|
|
Loading…
Reference in New Issue