From 72fa2e4569db2b653543c9a78380820aff7a5130 Mon Sep 17 00:00:00 2001 From: Eiichiro Watanabe Date: Thu, 31 Dec 2015 22:21:31 +0900 Subject: packet: fix missing value --- 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 34186234..30657e15 100644 --- a/packet/rtr.go +++ b/packet/rtr.go @@ -332,7 +332,7 @@ func (m *RTRErrorReport) Serialize() ([]byte, error) { } func NewRTRErrorReport(errCode uint16, errPDU []byte, errMsg []byte) *RTRErrorReport { - pdu := &RTRErrorReport{Type: RTR_ERROR_REPORT} + pdu := &RTRErrorReport{Type: RTR_ERROR_REPORT, ErrorCode: errCode} if errPDU != nil { if errPDU[1] == RTR_ERROR_REPORT { return nil -- cgit v1.2.3