From 513d40f5431c72cc72bfc7e161c8f3880a5bca04 Mon Sep 17 00:00:00 2001 From: Eiichiro Watanabe Date: Wed, 9 Dec 2015 11:33:45 +0900 Subject: packet: fix wrong assignment for Text field of RTRErrorReport --- packet/rtr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packet/rtr.go') 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 } -- cgit v1.2.3