Skip to content

Commit

Permalink
Changed too restrictive check
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Sep 25, 2024
1 parent ddd08f9 commit 276afa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ndpi_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -3711,7 +3711,7 @@ u_int ndpi_hex2bin(u_char *out, u_int out_len, u_char* in, u_int in_len) {
u_int ndpi_bin2hex(u_char *out, u_int out_len, u_char* in, u_int in_len) {
u_int i, j;

if (out_len < (in_len*2)+1) {
if (out_len < (in_len*2)) {
out[0] = '\0';
return(0);
}
Expand Down

0 comments on commit 276afa0

Please sign in to comment.