diff options
author | Luca Deri <deri@ntop.org> | 2021-06-21 17:06:22 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-06-21 17:06:22 +0200 |
commit | 0cbb4b2ffa8bc3aafcc91d9526d603124d88e1a4 (patch) | |
tree | d289f7509b13ff7094e6c5dde84a2a2e0b63f89a /src/lib/protocols | |
parent | 613e21002adfe5d536c632757cee2b4e6bda847b (diff) |
Restored 32 bit value in ndpi_match_string_value()
Diffstat (limited to 'src/lib/protocols')
-rw-r--r-- | src/lib/protocols/tls.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index 5f15d7f14..4f376a4ff 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -591,12 +591,13 @@ static void processCertificateElements(struct ndpi_detection_module_struct *ndpi if(flow->detected_protocol_stack[1] == NDPI_PROTOCOL_UNKNOWN) { /* No idea what is happening behind the scenes: let's check the certificate */ - u_int16_t proto_id; + u_int32_t val; int rc = ndpi_match_string_value(ndpi_struct->tls_cert_subject_automa.ac_automa, - rdnSeqBuf, strlen(rdnSeqBuf), &proto_id); + rdnSeqBuf, strlen(rdnSeqBuf), &val); if(rc == 0) { /* Match found */ + u_int16_t proto_id = (u_int16_t)val; ndpi_protocol ret = { NDPI_PROTOCOL_TLS, proto_id, NDPI_PROTOCOL_CATEGORY_UNSPECIFIED}; flow->detected_protocol_stack[0] = proto_id, |