nat: Fix a thinko in allowing '*' as a wildcard...
We need to match everything BUT the wildcard and then
do the normal strcmp...
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c
index b345a77..b45f447 100644
--- a/openbsc/src/nat/bsc_nat_utils.c
+++ b/openbsc/src/nat/bsc_nat_utils.c
@@ -785,9 +785,9 @@
regex_t reg;
regmatch_t matches[2];
- if (entry->mcc[0] == '*' || strncmp(entry->mcc, imsi, 3) != 0)
+ if (entry->mcc[0] != '*' && strncmp(entry->mcc, imsi, 3) != 0)
continue;
- if (entry->mnc[0] == '*' || strncmp(entry->mnc, imsi + 3, 2) != 0)
+ if (entry->mnc[0] != '*' && strncmp(entry->mnc, imsi + 3, 2) != 0)
continue;
if (entry->text[0] == '+') {