Skip to content

Commit

Permalink
NCL-1920: Add wild card on sophos adater query
Browse files Browse the repository at this point in the history
  • Loading branch information
Likith-Gowdahs committed Jul 18, 2024
1 parent d6de793 commit d9cee4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcharon/plugins/windows_dns/windows_dns_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit d9cee4d

Please sign in to comment.