summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-14 07:55:53 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-18 12:03:31 +0200
commitcb5353d8511f7cd36472334402f7ac31dc26327b (patch)
tree3e587fb9263774618f4c884af998ffe57f85bfbc
parent1b624ba1f6ecd31be9170b36d0747c0fc5d1e887 (diff)
oml: Add a missing break switch for NM_OC_BS11
It appears to me that for NM_OC_BS11 mo was either NULL or the one mo value from NM_OC_BS11_RACK. The break inside the nested switch case didn't break from the outer one. Fixes Coverity: CID 1040728
-rw-r--r--openbsc/src/libcommon/gsm_data_shared.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/libcommon/gsm_data_shared.c b/openbsc/src/libcommon/gsm_data_shared.c
index 9a50f6b..1b0814c 100644
--- a/openbsc/src/libcommon/gsm_data_shared.c
+++ b/openbsc/src/libcommon/gsm_data_shared.c
@@ -390,6 +390,7 @@ gsm_objclass2mo(struct gsm_bts *bts, uint8_t obj_class,
default:
return NULL;
}
+ break;
case NM_OC_BS11_RACK:
mo = &bts->bs11.rack.mo;
break;