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.orgHarald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/10321 ) Change subject: USSD/hlr_vty.c: print error if EUSE is not found ...................................................................... USSD/hlr_vty.c: print error if EUSE is not found Change-Id: I18045c5e544a99b2414a6f0268f1343df119b9f3 --- M src/hlr_vty.c 1 file changed, 7 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 9532a03..2d9b929 100644 --- a/src/hlr_vty.c +++ b/src/hlr_vty.c @@ -193,7 +193,13 @@ USSD_STR "Configure default-route for all USSD to unknown destinations\n" EXT_STR) { - struct hlr_euse *euse = euse_find(g_hlr, argv[0]); + struct hlr_euse *euse; + + euse = euse_find(g_hlr, argv[0]); + if (!euse) { + vty_out(vty, "%% Cannot find EUSE %s%s", argv[0], VTY_NEWLINE); + return CMD_WARNING; + } if (g_hlr->euse_default != euse) { vty_out(vty, "Switching default route from %s to %s%s", -- To view, visit https://gerrit.osmocom.org/10321 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: I18045c5e544a99b2414a6f0268f1343df119b9f3 Gerrit-Change-Number: 10321 Gerrit-PatchSet: 1 Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com> 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/20180802/4a41ab20/attachment.htm>