Change in osmo-bsc[master]: bsc_bts_alloc_register(): fix possible NULL-pointer dereference

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

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Sat May 30 19:35:01 UTC 2020


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


Change subject: bsc_bts_alloc_register(): fix possible NULL-pointer dereference
......................................................................

bsc_bts_alloc_register(): fix possible NULL-pointer dereference

Change-Id: I4560a7037a0a016636c4626c9fb3ceddfe98058e
---
M src/osmo-bsc/bsc_init.c
1 file changed, 1 insertion(+), 0 deletions(-)



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

diff --git a/src/osmo-bsc/bsc_init.c b/src/osmo-bsc/bsc_init.c
index 7f145ef..7333533 100644
--- a/src/osmo-bsc/bsc_init.c
+++ b/src/osmo-bsc/bsc_init.c
@@ -315,6 +315,7 @@
 struct gsm_bts *bsc_bts_alloc_register(struct gsm_network *net, enum gsm_bts_type type, uint8_t bsic)
 {
 	struct gsm_bts *bts = gsm_bts_alloc_register(net, type, bsic);
+	OSMO_ASSERT(bts != NULL);
 
 	bts->ho = ho_cfg_init(bts, net->ho);
 

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I4560a7037a0a016636c4626c9fb3ceddfe98058e
Gerrit-Change-Number: 18609
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200530/c973f597/attachment.htm>


More information about the gerrit-log mailing list