Use correct undo_list when clearing DNS addresses

Reported by: <aarnav@srlabs.de>

Change-Id: Iafac2b8f319457de8e36b427f26ebc27c040c6f7
Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1344
Message-Id: <20251103212523.31409-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34171.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
Selva Nair 2025-11-03 22:25:17 +01:00 committed by Gert Doering
parent 21b943734f
commit 59fed2ad12

View file

@ -1797,7 +1797,7 @@ static DWORD
HandleDNSConfigMessage(const dns_cfg_message_t *msg, undo_lists_t *lists)
{
DWORD err = 0;
undo_type_t undo_type = (msg->family == AF_INET6) ? undo_dns4 : undo_dns6;
undo_type_t undo_type = (msg->family == AF_INET6) ? undo_dns6 : undo_dns4;
int addr_len = msg->addr_len;
/* sanity check */