From 8610e6ad27daee3e145b8baa360c863fdd523c53 Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Wed, 6 Nov 2024 21:57:21 +0100 Subject: [PATCH] Fix capture stall with target apps in root mode When target apps are specified, the root capture would stall when matching the uid, because of an infinite loop. Fixes #467 --- app/src/main/jni/pcapd/pcapd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/jni/pcapd/pcapd.c b/app/src/main/jni/pcapd/pcapd.c index f3ab5f58..793c73ed 100644 --- a/app/src/main/jni/pcapd/pcapd.c +++ b/app/src/main/jni/pcapd/pcapd.c @@ -136,6 +136,8 @@ static int matches_uid_filter(const int *filter, int uid) { while (*filter != -1) { if (*filter == uid) return 1; + + filter++; } // no match