Skip to content

Commit

Permalink
Fix capture stall with target apps in root mode
Browse files Browse the repository at this point in the history
When target apps are specified, the root capture would stall
when matching the uid, because of an infinite loop.

Fixes #467
  • Loading branch information
emanuele-f committed Nov 6, 2024
1 parent b8847a2 commit 8610e6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/jni/pcapd/pcapd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 8610e6a

@emanuele-f
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: broken since 59d283b

Please sign in to comment.