From cd9b85fd4f2dafe4eab01c9d9c0706f00d81c12a Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Thu, 19 Jun 2025 15:01:03 +0300 Subject: [PATCH] Add a missing change in the second part of the CVE-2025-46806 fix --- probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe.c b/probe.c index c6a05d5..2859908 100644 --- a/probe.c +++ b/probe.c @@ -190,7 +190,7 @@ static int is_openvpn_protocol (const char*p,ssize_t len, struct sslhcfg_protoco memcpy(&i, (p + OVPN_HARD_RESET_PACKET_ID_OFFSET(OVPN_HMAC_160)), sizeof(i)); i = ntohl(i); - if (ntohl(*(uint32_t*)(p + OVPN_HARD_RESET_PACKET_ID_OFFSET(OVPN_HMAC_160))) <= 5u) + if (i <= 5u) return PROBE_MATCH; return PROBE_NEXT;