[SSSD] [PATCH] IPA: Handle bad results from c-ares lookup

Stephen Gallagher sgallagh at redhat.com
Tue Nov 27 21:10:23 UTC 2012


In some situations, the c-ares lookup can return NULL instead of
a list of addresses. In this situation, we need to avoid
dereferencing NULL.

This patch adds a log message and sets the count to zero so it is
handled appropriately below.

This patch fixes the crash seen in 
https://bugzilla.redhat.com/show_bug.cgi?id=880571

This may actually be due to a bug in c-ares, but we should be defensive 
anyway.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-IPA-Handle-bad-results-from-c-ares-lookup.patch
Type: text/x-patch
Size: 1522 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20121127/d41dbfa7/attachment.bin>


More information about the sssd-devel mailing list