Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: dns: Check family before returning results
If we are returned IPv4 address but the hints says IPv6, then return error as currently we do not support AI_V4MAPPED addresses. Same check for IPv6 if we want only IPv4 address. Fixes #18870 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
- Loading branch information
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters