[Freeipa-devel] [PATCH 101] Fix error handling in ldap_entry_create()

Petr Spacek pspacek at redhat.com
Wed Nov 21 16:04:00 UTC 2012


Hello,

fixed fix is attached. Clang found bug in the fix but I didn't notice that 
because of other warnings ...

On 11/21/2012 04:04 PM, Petr Spacek wrote:
> Hello,
>
> I noticed this problem during investigation of dead code found by Clang.
>
>      Fix error handling in ldap_entry_create().
>
>      Jump to cleanup section after first memory allocation created memory leak
>      which crashed BIND on reload.
>
>      Missing return value check after ldap_get_dn() call can lead to crash.

-- 
Petr^2 Spacek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind-dyndb-ldap-pspacek-0101-2-Fix-error-handling-in-ldap_entry_create.patch
Type: text/x-patch
Size: 2792 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20121121/69ca0505/attachment.bin>


More information about the Freeipa-devel mailing list