summaryrefslogtreecommitdiffhomepage
path: root/packet
diff options
context:
space:
mode:
authorEiichiro Watanabe <a16tochjp@gmail.com>2015-12-09 11:33:45 +0900
committerEiichiro Watanabe <a16tochjp@gmail.com>2015-12-09 12:30:49 +0900
commit513d40f5431c72cc72bfc7e161c8f3880a5bca04 (patch)
tree30c163f61bfa87ad2d60da0a709642f15290675c /packet
parent870cd8333af6986fd24da44abff048bfb1a51c9b (diff)
packet: fix wrong assignment for Text field of RTRErrorReport
Diffstat (limited to 'packet')
-rw-r--r--packet/rtr.go2
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
}