[SSSD] [PATCH] RESOLV: Do not steal the resulting hostent on error

Jakub Hrozek jhrozek at redhat.com
Tue Dec 18 10:57:19 UTC 2012


On Mon, Dec 17, 2012 at 01:05:46PM +0100, Pavel Březina wrote:
> On 12/16/2012 11:38 PM, Jakub Hrozek wrote:
> >I have not reproduced the access-after-free described in
> >https://fedorahosted.org/sssd/ticket/1706 but the backtrace matches the
> >fix and I think it's simply the correct thing to do.
> 
> Ack.
> 

Pushed to master.

> It may be also a good idea to use talloc_zfree() when freeing
> state->rhostent instead of talloc_free().

Yes, please submit a ticket (or a patch :-))



More information about the sssd-devel mailing list