Commit 9f793608 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for ePCO

parent eef626ec
...@@ -103,15 +103,18 @@ void xgpp_conv::protocol_configuration_options_nas_to_core( ...@@ -103,15 +103,18 @@ void xgpp_conv::protocol_configuration_options_nas_to_core(
// pco_nas.protocol_or_container_ids[i].length; // pco_nas.protocol_or_container_ids[i].length;
// pco.protocol_or_container_ids[i].protocol_id = // pco.protocol_or_container_ids[i].protocol_id =
// pco_nas.protocol_or_container_ids[i].id; // pco_nas.protocol_or_container_ids[i].id;
unsigned char data[512] = {'\0'}; if (pco_nas.protocol_or_container_ids[i].contents != nullptr) {
memcpy( unsigned char data[512] = {'\0'};
(void*) &data, memcpy(
(void*) pco_nas.protocol_or_container_ids[i].contents->data, (void*) &data,
pco_nas.protocol_or_container_ids[i].contents->slen); (void*) pco_nas.protocol_or_container_ids[i].contents->data,
std::string msg_bstr( pco_nas.protocol_or_container_ids[i].contents->slen);
(char*) data, pco_nas.protocol_or_container_ids[i].contents->slen); std::string msg_bstr(
// pco.protocol_or_container_ids[i].protocol_id_contents = msg_bstr; (char*) data, pco_nas.protocol_or_container_ids[i].contents->slen);
pco_item.protocol_id_contents = msg_bstr; // pco.protocol_or_container_ids[i].protocol_id_contents = msg_bstr;
pco_item.protocol_id_contents = msg_bstr;
}
pco.protocol_or_container_ids.push_back(pco_item); pco.protocol_or_container_ids.push_back(pco_item);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment