diff options
author | Eiichiro Watanabe <a16tochjp@gmail.com> | 2015-12-31 22:21:31 +0900 |
---|---|---|
committer | Eiichiro Watanabe <a16tochjp@gmail.com> | 2015-12-31 22:21:31 +0900 |
commit | 72fa2e4569db2b653543c9a78380820aff7a5130 (patch) | |
tree | af8cbc70b856df02bca7fb7b812f6dcebca61ae1 /packet | |
parent | 84c164a89c4eb0ccc6dcb939d0c9dbb185f842b8 (diff) |
packet: fix missing value
Diffstat (limited to 'packet')
-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 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 |