mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-05 19:15:12 +00:00
Fixed makefile error message
Code hardedning fix
This commit is contained in:
parent
802254327a
commit
a8ad99aca5
2 changed files with 10 additions and 3 deletions
|
|
@ -749,10 +749,14 @@ char* ndpi_ssl_version2str(struct ndpi_flow_struct *flow,
|
|||
return("TLSv1.3 (draft)");
|
||||
|
||||
*unknown_tls_version = 1;
|
||||
snprintf(flow->protos.stun_ssl.ssl.ssl_version_str,
|
||||
sizeof(flow->protos.stun_ssl.ssl.ssl_version_str), "TLS (%04X)", version);
|
||||
|
||||
return(flow->protos.stun_ssl.ssl.ssl_version_str);
|
||||
if(flow != NULL) {
|
||||
snprintf(flow->protos.stun_ssl.ssl.ssl_version_str,
|
||||
sizeof(flow->protos.stun_ssl.ssl.ssl_version_str), "TLS (%04X)", version);
|
||||
|
||||
return(flow->protos.stun_ssl.ssl.ssl_version_str);
|
||||
} else
|
||||
return("");
|
||||
}
|
||||
|
||||
/* ***************************************************** */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue