[MERGED] openbsc[master]: channel_mode_from_lchan(): Add missing break statement

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
Fri Dec 9 16:26:24 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: channel_mode_from_lchan(): Add missing break statement
......................................................................


channel_mode_from_lchan(): Add missing break statement

GSM48_CMODE_DATA_6k0 was not properly terminated and thus resulted in a
bug.

Change-Id: I4000f06d0b49c4afb0446beddd150521c4ba3cf0
Fixes: Coverity CID 148207
---
M openbsc/src/libbsc/abis_rsl.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Max: Looks good to me, but someone else must approve
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index 2c016a6..8a6b111 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/src/libbsc/abis_rsl.c
@@ -453,6 +453,7 @@
 			     lchan->csd_mode);
 			return -EINVAL;
 		}
+		break;
 	default:
 		LOGP(DRSL, LOGL_ERROR,
 		     "unsupported lchan->tch_mode %u\n",

-- 
To view, visit https://gerrit.osmocom.org/1328
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4000f06d0b49c4afb0446beddd150521c4ba3cf0
Gerrit-PatchSet: 6
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list