From cdc72b81648fd0093011915f94b80b31dec41f97 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 13 Aug 2018 18:06:20 +0100 Subject: [PATCH] Fix bug in packing of transport layer address --- srsepc/src/mme/s1ap_ctx_mngmt_proc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc b/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc index 817f943cf..afbe19e3a 100644 --- a/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc +++ b/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc @@ -124,7 +124,8 @@ s1ap_ctx_mngmt_proc::send_initial_context_setup_request(nas *nas_ctx, uint16_t e //Set E-RAB S-GW F-TEID erab_ctx_req->transportLayerAddress.n_bits = 32; //IPv4 uint32_t sgw_s1u_ip = htonl(esm_ctx->sgw_s1u_fteid.ipv4); - liblte_value_2_bits(sgw_s1u_ip, (uint8_t**) &erab_ctx_req->transportLayerAddress.buffer, 32); + uint8_t *tmp_ptr = erab_ctx_req->transportLayerAddress.buffer; + liblte_value_2_bits(sgw_s1u_ip, &tmp_ptr, 32); uint32_t sgw_s1u_teid = esm_ctx->sgw_s1u_fteid.teid; memcpy(erab_ctx_req->gTP_TEID.buffer, &sgw_s1u_teid, sizeof(uint32_t));