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:26:57 UTC 2018


Harald Welte has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/56/10256/1

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: newchange
Gerrit-Change-Id: I5ebaea77be6beaf88771fb584477358a4d80a47f
Gerrit-Change-Number: 10256
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180730/d7a4ab2e/attachment.htm>


More information about the gerrit-log mailing list