From: Oleksandr Stepanov -X (ostepano - SOFTSERVE INC at Cisco) Date: Wed, 22 Jan 2025 18:44:29 +0000 (+0000) Subject: Pull request #4581: appid: added check for brute force manager presence X-Git-Tag: 3.6.3.0~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2021e5c9af1452682be1e605f389503bf589a3b;p=thirdparty%2Fsnort3.git Pull request #4581: appid: added check for brute force manager presence Merge in SNORT/snort3 from ~OSTEPANO/snort3:brute_force_check to master Squashed commit of the following: commit 7cf6fc77529bf4c9ff7fd7bda65cd6eba5367803 Author: Oleksandr Stepanov Date: Wed Jan 22 06:21:43 2025 -0500 appid: added check for brute force manager presence --- diff --git a/src/network_inspectors/appid/service_state.h b/src/network_inspectors/appid/service_state.h index b5b6cfc8d..94b20dd93 100644 --- a/src/network_inspectors/appid/service_state.h +++ b/src/network_inspectors/appid/service_state.h @@ -134,9 +134,9 @@ public: void next_brute_force(IpProtocol proto) { - if ( proto == IpProtocol::TCP ) + if ( tcp_brute_force_mgr and (proto == IpProtocol::TCP) ) tcp_brute_force_mgr->next(); - else if (proto == IpProtocol::UDP ) + else if ( udp_brute_force_mgr and (proto == IpProtocol::UDP) ) udp_brute_force_mgr->next(); brute_force_inprocess_count = 0; }