Skip to content

Commit

Permalink
changed invalid length action from exit to return 32 in zfw_tunnel_wr…
Browse files Browse the repository at this point in the history
…apper.c
  • Loading branch information
r-caamano committed May 26, 2024
1 parent d7535be commit a2c11b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zfw_tunnel_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ __u16 len2u16(char *len)
if ((tmpint < 0) || (tmpint > 32) || (!(*(endPtr) == '\0')))
{
printf("Invalid Prefix Length: %s\n", len);
exit(1);
return 32;
}
__u16 u16int = (__u16)tmpint;
return u16int;
Expand Down

0 comments on commit a2c11b9

Please sign in to comment.