From d9cee4df9e83e29448dccefb7c25a633204f2910 Mon Sep 17 00:00:00 2001 From: Likith Gowda H S Date: Thu, 18 Jul 2024 13:33:54 +0530 Subject: [PATCH] NCL-1920: Add wild card on sophos adater query --- src/libcharon/plugins/windows_dns/windows_dns_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcharon/plugins/windows_dns/windows_dns_handler.c b/src/libcharon/plugins/windows_dns/windows_dns_handler.c index acf87153135..2445b3fc4a7 100644 --- a/src/libcharon/plugins/windows_dns/windows_dns_handler.c +++ b/src/libcharon/plugins/windows_dns/windows_dns_handler.c @@ -212,7 +212,7 @@ static int GetTapAdapterInfo( IWbemServices *pSvc, int *iface_idx, wchar_t *dns1 { // Allocate our strings language = SysAllocString( L"WQL" ); - query = SysAllocString( L"SELECT * FROM Win32_NetworkAdapterConfiguration where Description LIKE 'Sophos TAP Adapter'" ); + query = SysAllocString( L"SELECT * FROM Win32_NetworkAdapterConfiguration where Description LIKE 'Sophos TAP Adapter%'" ); // Get the current DNS servers list for our adapter hres = pSvc->lpVtbl->ExecQuery( pSvc, language, query, WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY, NULL, &pEnumerator );