diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-07-05 16:37:37 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-07-05 16:37:37 +0200 |
commit | 62d345a6ef199d5c3011acd3b0904d4d316215a0 (patch) | |
tree | cf715d45611dc450a34c54527d5e5660538b7028 /src/input | |
parent | 3e86c6be0ef653f738ceb0d8c384b447a13ae48e (diff) |
ipaccess: fix ID_RESP parsing in BSC mode
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/ipaccess.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index b0c52de..5da9b2c 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -134,8 +134,7 @@ int ipaccess_parse_unitid(const char *str, struct ipaccess_unit *unit_data) ul = strtoul(nptr, &endptr, 10); if (endptr <= nptr) return -EINVAL; - if (unit_data->site_id) - unit_data->site_id = ul & 0xffff; + unit_data->site_id = ul & 0xffff; if (*endptr++ != '/') return -EINVAL; @@ -144,8 +143,7 @@ int ipaccess_parse_unitid(const char *str, struct ipaccess_unit *unit_data) ul = strtoul(nptr, &endptr, 10); if (endptr <= nptr) return -EINVAL; - if (unit_data->bts_id) - unit_data->bts_id = ul & 0xffff; + unit_data->bts_id = ul & 0xffff; if (*endptr++ != '/') return -EINVAL; @@ -154,8 +152,7 @@ int ipaccess_parse_unitid(const char *str, struct ipaccess_unit *unit_data) ul = strtoul(nptr, &endptr, 10); if (endptr <= nptr) return -EINVAL; - if (unit_data->trx_id) - unit_data->trx_id = ul & 0xffff; + unit_data->trx_id = ul & 0xffff; return 0; } |