URL:
https://github.com/SSSD/sssd/pull/5452
Author: alexey-tikhonov
Title: #5452: RESOLV: handle fail of ares_parse_*_reply() properly
Action: opened
PR body:
"""
With modern versions of c-ares ares_parse_*_reply() functions don't touch
`hostent **host` in case of fail.
This means it's unreliable to check for (hostent != NULL) without previous
initialization.
To be on a safe side it's better to check for return code as well.
Resolves:
https://github.com/SSSD/sssd/issues/5451
"""
To pull the PR as Git branch:
git remote add ghsssd
https://github.com/SSSD/sssd
git fetch ghsssd pull/5452/head:pr5452
git checkout pr5452