Change in osmo-hnodeb[master]: llsk_gtp: Early return if conn alloc fails

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Fri Dec 17 12:40:47 UTC 2021


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-hnodeb/+/26602 )


Change subject: llsk_gtp: Early return if conn alloc fails
......................................................................

llsk_gtp: Early return if conn alloc fails

Change-Id: Iaf597b76ceb9cce3f27c42625f963f740c8f213e
---
M src/osmo-hnodeb/llsk_gtp.c
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hnodeb refs/changes/02/26602/1

diff --git a/src/osmo-hnodeb/llsk_gtp.c b/src/osmo-hnodeb/llsk_gtp.c
index 30451a0..a224d56 100644
--- a/src/osmo-hnodeb/llsk_gtp.c
+++ b/src/osmo-hnodeb/llsk_gtp.c
@@ -169,6 +169,9 @@
 
 	/* Create the socket: */
 	conn = gtp_conn_alloc(ue);
+	if (!conn)
+		return _send_conn_establish_cnf_failed(hnb, ce_req->context_id, 4);
+
 	if ((rc = gtp_conn_setup(conn, &rem_osa, ce_req->remote_tei)) < 0) {
 		LOGUE(ue, DLLSK, LOGL_ERROR, "Rx GTP-CONN_ESTABLISH.req: Failed to set up gtp socket rem_tei=%u rem_addr=%s\n",
 		     ce_req->remote_tei, rem_addrstr);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-hnodeb/+/26602
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hnodeb
Gerrit-Branch: master
Gerrit-Change-Id: Iaf597b76ceb9cce3f27c42625f963f740c8f213e
Gerrit-Change-Number: 26602
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211217/d04ec8f7/attachment.htm>


More information about the gerrit-log mailing list