Restored 32 bit value in ndpi_match_string_value()
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user