tls_supported_versions only if version_str is initialized

With version_len == (extension_len-1)
This commit is contained in:
Philippe Antoine
2020-03-19 17:19:28 +01:00
parent 2aec630202
commit 3e259aac98
+2 -2
View File
@@ -1136,10 +1136,10 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
version_str_len += rc;
}
}
}
if(flow->protos.stun_ssl.ssl.tls_supported_versions == NULL)
flow->protos.stun_ssl.ssl.tls_supported_versions = ndpi_strdup(version_str);
}
}
extension_offset += extension_len;