From 1da9f1a36fc2f60d8a2f13fca88a7675d327e3ad Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 30 May 2022 00:54:17 +0200 Subject: Updated tests results Code cleanup --- src/lib/protocols/tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/protocols/tls.c') diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index aef6ede7e..24ed7b20e 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -478,7 +478,7 @@ static void processCertificateElements(struct ndpi_detection_module_struct *ndpi } if((time_sec < flow->protos.tls_quic.notBefore) || (time_sec > flow->protos.tls_quic.notAfter)) { - char str[64], b[32], e[32]; + char str[96], b[32], e[32]; struct tm result; time_t theTime; @@ -492,7 +492,7 @@ static void processCertificateElements(struct ndpi_detection_module_struct *ndpi ndpi_set_risk(ndpi_struct, flow, NDPI_TLS_CERTIFICATE_EXPIRED, str); /* Certificate expired */ } else if((time_sec > flow->protos.tls_quic.notBefore) && (time_sec > (flow->protos.tls_quic.notAfter - (ndpi_struct->tls_certificate_expire_in_x_days * 86400)))) { - char str[64], b[32], e[32]; + char str[96], b[32], e[32]; struct tm result; time_t theTime; -- cgit v1.2.3