[MERGED] openbsc[master]: ipaccess-config: initialize root talloc ctx with name

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

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Thu Oct 13 13:14:42 UTC 2016


Neels Hofmeyr has submitted this change and it was merged.

Change subject: ipaccess-config: initialize root talloc ctx with name
......................................................................


ipaccess-config: initialize root talloc ctx with name

tall_ctx_config is defined but remains NULL. Instead initialize as named
const.

Change-Id: Iec708eda2e4f8eb88b9e5bc5f82f6342709760b1
---
M openbsc/src/ipaccess/ipaccess-config.c
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/openbsc/src/ipaccess/ipaccess-config.c b/openbsc/src/ipaccess/ipaccess-config.c
index 9e3a471..453877b 100644
--- a/openbsc/src/ipaccess/ipaccess-config.c
+++ b/openbsc/src/ipaccess/ipaccess-config.c
@@ -852,6 +852,8 @@
 	struct sockaddr_in sin;
 	int rc, option_index = 0, stream_id = 0xff;
 
+	tall_ctx_config = talloc_named_const(NULL, 0, "ipaccess-config");
+
 	osmo_init_logging(&log_info);
 	log_parse_category_mask(osmo_stderr_target, "DNM,0");
 	bts_model_nanobts_init();

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iec708eda2e4f8eb88b9e5bc5f82f6342709760b1
Gerrit-PatchSet: 2
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list