[VOL-5552] Remove transaction ID from map when OMCI response is corrupted
Change-Id: I8c7d723f9592cdb1aced6180f5cfbb90446662a8
Signed-off-by: bseeniva <balaji.seenivasan@radisys.com>
diff --git a/VERSION b/VERSION
index de4e782..2236901 100755
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.13.18
+2.13.19
diff --git a/internal/pkg/common/omci_cc.go b/internal/pkg/common/omci_cc.go
index e336e6a..0e08fb2 100755
--- a/internal/pkg/common/omci_cc.go
+++ b/internal/pkg/common/omci_cc.go
@@ -416,6 +416,9 @@
logger.Errorw(ctx, "Unexpected TransCorrId != 0 not accepted for autonomous messages",
log.Fields{"msgType": omciMsg.MessageType, "payload": hex.EncodeToString(omciMsg.Payload),
"device-id": oo.deviceID})
+ oo.mutexRxSchedMap.Lock()
+ delete(oo.rxSchedulerMap, omciMsg.TransactionID)
+ oo.mutexRxSchedMap.Unlock()
return fmt.Errorf("autonomous Omci Message with TranSCorrId != 0 not acccepted %s", oo.deviceID)
}
//logger.Debug(ctx,"RxMsg is a Omci Response Message: try to schedule it to the requester")