summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-01-10 14:22:55 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-01-10 14:22:55 +0100
commit55466197f03c7f9f5bb2de8366db887be3b02023 (patch)
tree024f8283ec874eb8c655e7a7460a0210692fb163
parentdec7387a22a6f99693894e7954f1c7adaaaf412e (diff)
nat: SMS rewrite matching, empty list means match everything
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_nat_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c b/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c
index cf125a661..1fd226ff9 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c
@@ -907,7 +907,7 @@ static char *find_new_smsc(struct bsc_nat *nat, void *ctx, const char *imsi,
{
struct bsc_nat_num_rewr_entry *entry;
char *new_number = NULL;
- uint8_t dest_match = 0;
+ uint8_t dest_match = llist_empty(&nat->tpdest_match);
/* We will find a new number now */
llist_for_each_entry(entry, &nat->smsc_rewr, list) {