aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-17 07:59:57 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-17 08:07:03 +0200
commitb5de1b078110a0ef36f6987a81b7430822c7aa52 (patch)
tree81b1d1585aabe7aaa60aefd7c87ac97115ac640f
parentb022cc3b8e092d99088b2c03ec6ee69b5f6c1e08 (diff)
nat: Mention when we do not find a BSC for a given token.
This might help to identify what is wrong with the config of the BSC. Also using the result of TLVP_VAL as a char pointer looks suspicious...
-rw-r--r--openbsc/src/nat/bsc_nat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 697b16217..9a5da0b6e 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -481,9 +481,11 @@ static void ipaccess_auth_bsc(struct tlv_parsed *tvp, struct bsc_connection *bsc
bsc->cfg = conf;
bsc_del_timer(&bsc->id_timeout);
LOGP(DNAT, LOGL_NOTICE, "Authenticated bsc nr: %d lac: %d\n", conf->nr, conf->lac);
- break;
+ return;
}
}
+
+ LOGP(DNAT, LOGL_ERROR, "No bsc found for token %s.\n", token);
}
static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg)