path: root/src
diff options
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-29 19:38:01 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-29 19:38:01 +0100
commitb7d0f4686b4aa55fd9b69884e6cc0c4c79ea1cd5 (patch)
tree01954ad73fa9e60432a35bb3526c4a68afa930ba /src
parent6308c2971149c1f4f2f13846ca1a334a82b6519c (diff)
logging: Copy the filter_fn and fix the IMSI filter in OpenBSC
The filter_fn has not been copied into the new structure breaking the imsi and other filters in OpenBSC. Looking at the code we should also introduce a callback for the reset of the context so we could use subscr_get/subscr_put on the subscriber structure.
Diffstat (limited to 'src')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/logging.c b/src/logging.c
index 214ad2ab..2e3a80ad 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -768,6 +768,7 @@ int log_init(const struct log_info *inf, void *ctx)
if (!osmo_log_info)
return -ENOMEM;
+ osmo_log_info->filter_fn = inf->filter_fn;
osmo_log_info->num_cat_user = inf->num_cat;
/* total number = number of user cat + library cat */
osmo_log_info->num_cat = inf->num_cat + ARRAY_SIZE(internal_cat);