From 55466197f03c7f9f5bb2de8366db887be3b02023 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 10 Jan 2012 14:22:55 +0100 Subject: nat: SMS rewrite matching, empty list means match everything --- openbsc/src/osmo-bsc_nat/bsc_nat_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3