diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-09-16 01:38:46 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-13 04:17:40 +0200 |
commit | 4ff1a5a957859ceec50f3f191399da5163198ff5 (patch) | |
tree | 917b22f0d57a02bb981225cb4560af23221a63e0 /src/hnbgw.c | |
parent | f7f17d4b8f56d5cbcd88c052d05b8dde382022db (diff) |
fix msgb talloc context initialization
Properly initialize msgb talloc context in hnbgw and all tests, using the new
msgb_talloc_ctx_init().
test-ranap.c: since msgb talloc ctx is now in test_common_init(), remove msgb
talloc init here.
Change-Id: I807c799aff1239184728551ed77fdafa73bd683f
Diffstat (limited to 'src/hnbgw.c')
-rw-r--r-- | src/hnbgw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hnbgw.c b/src/hnbgw.c index 500cf0f..8d6dbb1 100644 --- a/src/hnbgw.c +++ b/src/hnbgw.c @@ -454,6 +454,7 @@ int main(int argc, char **argv) tall_hnb_ctx = talloc_named_const(NULL, 0, "hnb_context"); talloc_asn1_ctx = talloc_named_const(NULL, 0, "asn1_context"); + msgb_talloc_ctx_init(tall_hnb_ctx, 0); g_hnb_gw = hnb_gw_create(tall_hnb_ctx); g_hnb_gw->config.rnc_id = 23; |