Harald Welte has uploaded this change for review. ( 
https://gerrit.osmocom.org/10324


Change subject: IPA_Emulation: Add missing zero byte to strings in IPA CCM ID 
RESP
......................................................................

IPA_Emulation: Add missing zero byte to strings in IPA CCM ID RESP

Change-Id: I3fdc0f47381d5ba1763197d5f264696f04d0396f
---
M library/IPA_Emulation.ttcnpp
M library/IPA_Types.ttcn
2 files changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/24/10324/1

diff --git a/library/IPA_Emulation.ttcnpp b/library/IPA_Emulation.ttcnpp
index a271f2d..b10a983 100644
--- a/library/IPA_Emulation.ttcnpp
+++ b/library/IPA_Emulation.ttcnpp
@@ -239,7 +239,7 @@
 private template IpaCcmRespPart t_IdRespPart(IpaCcmIdTag tag, charstring 
payload) := {
        len := 0,       /* overwritten by codec */
        tag := tag,
-       data := payload
+       data := char2oct(payload) & '00'O
 }

 private function f_send_IPA_EVT(template ASP_IPA_Event evt) runs on 
IPA_Emulation_CT {
diff --git a/library/IPA_Types.ttcn b/library/IPA_Types.ttcn
index 933a3fe..3230329 100644
--- a/library/IPA_Types.ttcn
+++ b/library/IPA_Types.ttcn
@@ -98,7 +98,7 @@
 type record IpaCcmRespPart {
        uint16_t        len,
        IpaCcmIdTag     tag,
-       charstring      data
+       octetstring     data
 } with { variant (len) "LENGTHTO(data,tag)" }
 type set of IpaCcmRespPart IpaCcmIdResp;


--
To view, visit https://gerrit.osmocom.org/10324
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3fdc0f47381d5ba1763197d5f264696f04d0396f
Gerrit-Change-Number: 10324
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <[email protected]>

Reply via email to