[SSSD] [PATCH] fix early free of sdap_handle

Simo Sorce ssorce at redhat.com
Wed Apr 14 14:43:58 UTC 2010


On Tue, 13 Apr 2010 12:51:39 -0400
Simo Sorce <ssorce at redhat.com> wrote:

> 
> 
> This patch attempts to address the problem Eugene found with
> sdap_handle_release()

Attached a follow-up patch to address Eugene's legitimate concern about
restrictions put on _send() functions. We never free gsh in a _send()
either but only in the _recv() function of the call that actually
establish a new connection. This guarantees that gsh will never be
freed during sdap_handle_release() or any other error code path.

I can squash the 2 patches in a single one if people feels that is
better. Comments welcome.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Free-sdap_handle-in-a-better-place.patch
Type: text/x-patch
Size: 4187 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20100414/0cb4096d/attachment.bin>


More information about the sssd-devel mailing list