Packet bins are not printed wehn empty
This commit is contained in:
Luca Deri
2020-06-22 14:30:26 +02:00
parent e29e14b7aa
commit d9af1562f0
38 changed files with 871 additions and 867 deletions
+1 -2
View File
@@ -29,7 +29,6 @@
#include "ndpi_md5.h"
#include "ndpi_sha1.h"
extern char *strptime(const char *s, const char *format, struct tm *tm);
extern int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow);
@@ -1165,7 +1164,7 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
#ifdef DEBUG_TLS
printf("Client SSL [EllipticCurveFormat: len=%u]\n", extension_len);
#endif
if((s_offset+extension_len) < total_len) {
if((s_offset+extension_len-1) <= total_len) {
for(i=0; i<extension_len-1;i++) {
u_int8_t s_group = packet->payload[s_offset+i];