Change in osmo-hlr[master]: USSD: fix null-pointer deref in "default-route" vty/config cmd

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Jul 30 15:29:24 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/10256 )

Change subject: USSD: fix null-pointer deref in "default-route" vty/config cmd
......................................................................

USSD: fix null-pointer deref in "default-route" vty/config cmd

Change-Id: I5ebaea77be6beaf88771fb584477358a4d80a47f
---
M src/hlr_vty.c
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/src/hlr_vty.c b/src/hlr_vty.c
index e1349e7..5c359b7 100644
--- a/src/hlr_vty.c
+++ b/src/hlr_vty.c
@@ -166,7 +166,8 @@
 
 	if (g_hlr->euse_default != euse) {
 		vty_out(vty, "Switching default route from %s to %s%s",
-			g_hlr->euse_default->name, euse->name, VTY_NEWLINE);
+			g_hlr->euse_default ? g_hlr->euse_default->name : "<none>",
+			euse->name, VTY_NEWLINE);
 		g_hlr->euse_default = euse;
 	}
 

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

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I5ebaea77be6beaf88771fb584477358a4d80a47f
Gerrit-Change-Number: 10256
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180730/2f3ea6bb/attachment.htm>


More information about the gerrit-log mailing list