Change in osmo-bsc[master]: vty: fix unreacheable code / wrong check in lchan_act_all_trx()

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

fixeria gerrit-no-reply at lists.osmocom.org
Mon Sep 28 04:48:01 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/20308 )


Change subject: vty: fix unreacheable code / wrong check in lchan_act_all_trx()
......................................................................

vty: fix unreacheable code / wrong check in lchan_act_all_trx()

Change-Id: If7d8a108a147980d26b71836343d20b1b0b95579
Fixes: CID#214277
---
M src/osmo-bsc/bsc_vty.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/08/20308/1

diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c
index 003939b..8808c20 100644
--- a/src/osmo-bsc/bsc_vty.c
+++ b/src/osmo-bsc/bsc_vty.c
@@ -5265,7 +5265,7 @@
 	}
 
 	trx = gsm_bts_trx_num(bts, trx_nr);
-	if (!bts) {
+	if (!trx) {
 		vty_out(vty, "%% No such TRX (%d)%s", trx_nr, VTY_NEWLINE);
 		return CMD_WARNING;
 	}

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: If7d8a108a147980d26b71836343d20b1b0b95579
Gerrit-Change-Number: 20308
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200928/1d0ed851/attachment.htm>


More information about the gerrit-log mailing list