Add fixes to NewE2 c-codes
Change-Id: I695d8c4c0fe8c7b29437986685c0a673fe7f0e96
Signed-off-by: Anssi Mannila <anssi.mannila@nokia.com>
diff --git a/pkg/control/registry.go b/pkg/control/registry.go
index 5e16c0a..396dade 100644
--- a/pkg/control/registry.go
+++ b/pkg/control/registry.go
@@ -142,6 +142,8 @@
if actionType == e2ap.E2AP_ActionTypePolicy {
if subs, ok := r.register[trans.GetSubId()]; ok {
xapp.Logger.Debug("CREATE %s. Existing subscription for Policy found", subs.String())
+ // Update message data to subscription
+ subs.SubReqMsg = subReqMsg
subs.SetCachedResponse(nil, true)
return subs, nil
}