Added pointer checks
Added -O2 (lost in release)
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ AS_IF([test "${with_sanitizer+set}" = set -a "${with_thread_sanitizer+set}" = se
|
||||
AS_IF([test "${with_sanitizer+set}" = set -o "${with_thread_sanitizer+set}" = set],[
|
||||
CFLAGS="${CFLAGS} -O0 -g3"
|
||||
],[
|
||||
CFLAGS="${CFLAGS} -g"
|
||||
CFLAGS="${CFLAGS} -O2"
|
||||
])
|
||||
|
||||
AS_IF([test "${with_sanitizer+set}" = set],[
|
||||
|
||||
@@ -2182,6 +2182,7 @@ static u_int64_t ndpi_host_ip_risk_ptree_match(struct ndpi_detection_module_stru
|
||||
/* Check isuerDN exception */
|
||||
u_int8_t ndpi_check_issuerdn_risk_exception(struct ndpi_detection_module_struct *ndpi_str,
|
||||
char *issuerDN) {
|
||||
if(issuerDN != NULL) {
|
||||
ndpi_list *head = ndpi_str->trusted_issuer_dn;
|
||||
|
||||
while(head != NULL) {
|
||||
@@ -2190,6 +2191,7 @@ u_int8_t ndpi_check_issuerdn_risk_exception(struct ndpi_detection_module_struct
|
||||
else
|
||||
head = head->next;
|
||||
}
|
||||
}
|
||||
|
||||
return(0 /* no exception */);
|
||||
}
|
||||
@@ -2200,6 +2202,9 @@ u_int8_t ndpi_check_issuerdn_risk_exception(struct ndpi_detection_module_struct
|
||||
static u_int8_t ndpi_check_hostname_risk_exception(struct ndpi_detection_module_struct *ndpi_str,
|
||||
struct ndpi_flow_struct *flow,
|
||||
char *hostname) {
|
||||
if(hostname == NULL)
|
||||
return(0);
|
||||
else {
|
||||
ndpi_automa *automa = &ndpi_str->host_risk_mask_automa;
|
||||
u_int8_t ret = 0;
|
||||
|
||||
@@ -2217,6 +2222,7 @@ static u_int8_t ndpi_check_hostname_risk_exception(struct ndpi_detection_module_
|
||||
}
|
||||
|
||||
return(ret);
|
||||
}
|
||||
}
|
||||
|
||||
/* ********************************************************************************* */
|
||||
|
||||
Reference in New Issue
Block a user