nat: SMS rewrite matching, empty list means match everything
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c b/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c
index cf125a6..1fd226f 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 @@
{
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) {