diff options
author | Eiichiro Watanabe <a16tochjp@gmail.com> | 2015-12-09 11:33:45 +0900 |
---|---|---|
committer | Eiichiro Watanabe <a16tochjp@gmail.com> | 2015-12-09 12:30:49 +0900 |
commit | 513d40f5431c72cc72bfc7e161c8f3880a5bca04 (patch) | |
tree | 30c163f61bfa87ad2d60da0a709642f15290675c /packet/rtr.go | |
parent | 870cd8333af6986fd24da44abff048bfb1a51c9b (diff) |
packet: fix wrong assignment for Text field of RTRErrorReport
Diffstat (limited to 'packet/rtr.go')
-rw-r--r-- | packet/rtr.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/rtr.go b/packet/rtr.go index 05ce59f4..dca8fa45 100644 --- a/packet/rtr.go +++ b/packet/rtr.go @@ -300,7 +300,7 @@ func (m *RTRErrorReport) DecodeFromBytes(data []byte) error { m.PDU = make([]byte, m.PDULen) copy(m.PDU, data[12:12+m.PDULen]) m.TextLen = binary.BigEndian.Uint32(data[12+m.PDULen : 16+m.PDULen]) - m.PDU = make([]byte, m.TextLen) + m.Text = make([]byte, m.TextLen) copy(m.Text, data[16+m.PDULen:]) return nil } |