aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2024-09-25 19:50:33 +0200
committerLuca Deri <deri@ntop.org>2024-09-25 19:50:33 +0200
commit276afa0d00a2aa219865db044954d2355b13b93b (patch)
tree4e18c8daa5ff84165d62b2e2cf269dac55b26d95 /src/lib/ndpi_utils.c
parentddd08f913c80289e13e9c000e11c473a21ec23ca (diff)
Changed too restrictive check
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r--src/lib/ndpi_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c
index 14a716298..8282319f9 100644
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -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);
}