Skip to content

Commit 276afa0

Browse files
committed
Changed too restrictive check
1 parent ddd08f9 commit 276afa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/ndpi_utils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3711,7 +3711,7 @@ u_int ndpi_hex2bin(u_char *out, u_int out_len, u_char* in, u_int in_len) {
37113711
u_int ndpi_bin2hex(u_char *out, u_int out_len, u_char* in, u_int in_len) {
37123712
u_int i, j;
37133713

3714-
if (out_len < (in_len*2)+1) {
3714+
if (out_len < (in_len*2)) {
37153715
out[0] = '\0';
37163716
return(0);
37173717
}

0 commit comments

Comments
 (0)