summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packet/rtr.go2
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