Skip to content

Commit

Permalink
fruity: Bail on iOS tunnel service versions pre-17
Browse files Browse the repository at this point in the history
Instead of crashing.

Co-authored-by: Ole André Vadla Ravnås <[email protected]>
  • Loading branch information
hsorbo and oleavr committed Oct 10, 2024
1 parent 364bf65 commit a23fba6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fruity/xpc.vala
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ namespace Frida.Fruity {
reader.read_member ("_1");
reader.read_member ("createListener");

reader.read_member ("devicePublicKey");
if (!reader.read_member ("devicePublicKey"))
throw new Error.NOT_SUPPORTED ("Unsupported tunnel service");
string? device_pubkey = reader.get_string_value ();
reader.end_member ();

Expand Down

0 comments on commit a23fba6

Please sign in to comment.