Ticket #1274 (closed defect: fixed)
Wrong resolv_status might cause crash when name resolution times out
|Reported by:||jhrozek||Owned by:||jhrozek|
|Priority:||major||Milestone:||SSSD 1.8.2 (LTM)|
|Tests Updated:||no||Coverity Bug:|
|Patch Submitted:||yes||Red Hat Bugzilla:||805918, 812387|
|Design review:||Fedora test page:|
|Chosen:||Candidate to push out:|
When name resolution times out, the errno return code is 110 (which is correct = ETIMEDOUT), but the resolv_status is 0. This is wrong.
We should probably rely mostly on the errno return code and only treat the resolv_status, which is the original ares return code, as kind of extended information, also because in the future we might switch to a different resolver with different error codes.
- Red Hat Bugzilla set to [https://bugzilla.redhat.com/show_bug.cgi?id=805918 805918]
- Resolution set to fixed
- Status changed from assigned to closed