aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbsc/src/nat/bsc_nat_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c
index 59c92a38e..e1f1ddcfe 100644
--- a/openbsc/src/nat/bsc_nat_utils.c
+++ b/openbsc/src/nat/bsc_nat_utils.c
@@ -783,9 +783,9 @@ struct msgb *bsc_nat_rewrite_setup(struct bsc_nat *nat, struct msgb *msg, struct
regex_t reg;
regmatch_t matches[2];
- if (strncmp(entry->mcc, imsi, 3) != 0)
+ if (entry->mcc[0] == '*' || strncmp(entry->mcc, imsi, 3) != 0)
continue;
- if (strncmp(entry->mnc, imsi + 3, 2) != 0)
+ if (entry->mnc[0] == '*' || strncmp(entry->mnc, imsi + 3, 2) != 0)
continue;
/* We have an entry for the IMSI. Need to match now */