aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2013-10-17 13:58:35 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-17 14:45:27 +0200
commitbf0219654b09b6d8f3bc2c9f4d48c065b47f2983 (patch)
treece9cfc9a2f63c4a5cacfbfec1be874f0099c2ba7 /src/gb
parent0d4e949e229a649ffd0503d8e930dba8be7dd34d (diff)
gb: Fix gprs_active_nsvc_by_nsei()
The state matching condition is inverted. This is corrected by this fix. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/gb')
-rw-r--r--src/gb/gprs_ns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gb/gprs_ns.c b/src/gb/gprs_ns.c
index bdc7ae3c..6a35ad35 100644
--- a/src/gb/gprs_ns.c
+++ b/src/gb/gprs_ns.c
@@ -158,8 +158,8 @@ static struct gprs_nsvc *gprs_active_nsvc_by_nsei(struct gprs_ns_inst *nsi,
struct gprs_nsvc *nsvc;
llist_for_each_entry(nsvc, &nsi->gprs_nsvcs, list) {
if (nsvc->nsei == nsei) {
- if (nsvc->state & NSE_S_BLOCKED ||
- !(nsvc->state & NSE_S_ALIVE))
+ if (!(nsvc->state & NSE_S_BLOCKED) &&
+ nsvc->state & NSE_S_ALIVE)
return nsvc;
}
}