diff options
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c index 43b17df50..e0ea5f7c2 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_main.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c @@ -321,8 +321,8 @@ int verify_net_loc(struct ctrl_cmd *cmd, const char *value, void *data) height = atof(heightstr); talloc_free(tmp); - if ((age == 0) || (lat < -90) || (lat > 90) || (lon < -180) || - (lon > 180) || (valid < 0) || (valid > 2)) + if (((age == 0) && (valid !=0)) || (lat < -90) || (lat > 90) || + (lon < -180) || (lon > 180) || (valid < 0) || (valid > 2)) return 1; return 0; |