From 05f018b1634dc1fc19fc7edf5fa1031593ad1c65 Mon Sep 17 00:00:00 2001 From: herlesupreeth Date: Tue, 21 Mar 2023 09:21:51 +0100 Subject: [PATCH] gtpu: fix return value --- srsenb/src/stack/upper/gtpu.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srsenb/src/stack/upper/gtpu.cc b/srsenb/src/stack/upper/gtpu.cc index 17e8b29af..1cfdba525 100644 --- a/srsenb/src/stack/upper/gtpu.cc +++ b/srsenb/src/stack/upper/gtpu.cc @@ -84,11 +84,11 @@ gtpu_tunnel_manager::add_tunnel(uint16_t rnti, uint32_t eps_bearer_id, uint32_t { if (ran_type == srsran::srsran_rat_t::lte and not is_eps_bearer_id(eps_bearer_id)) { logger.warning("Adding TEID with invalid eps-BearerID=%d", eps_bearer_id); - return {}; + return nullptr; } if (ran_type == srsran::srsran_rat_t::nr and not is_nr_lcid(eps_bearer_id)) { logger.warning("Adding TEID with invalid eps-BearerID=%d", eps_bearer_id); - return {}; + return nullptr; } auto ret_pair = tunnels.insert(tunnel()); if (not ret_pair) {