From 2ca17cd4a7b2a9cdf1cb1906358a38af3fd4ae0a Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 24 Jan 2016 14:10:02 +0100 Subject: [PATCH] Native fixed crash recently introduced --- app/src/main/jni/netguard/netguard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/jni/netguard/netguard.c b/app/src/main/jni/netguard/netguard.c index 1820410c..ca813067 100644 --- a/app/src/main/jni/netguard/netguard.c +++ b/app/src/main/jni/netguard/netguard.c @@ -502,7 +502,7 @@ void check_sessions(const struct arguments *args) { if (t->state != TCP_TIME_WAIT && t->state != TCP_CLOSE && t->time + timeout < now) { // TODO send keep alives? log_android(ANDROID_LOG_WARN, "Idle %d/%d sec from %s/%u to %s/%u state %s", - now - u->time, timeout, + now - t->time, timeout, source, ntohs(t->source), dest, ntohs(t->dest), strstate(t->state)); write_rst(args, t);