[Freeipa-devel] [PATCH] Fix initialization problems in tools
Stephen Gallagher
sgallagh at redhat.com
Sun Mar 8 14:15:10 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jakub Hrozek wrote:
> This patch initializes variables on defining them. If the tools failed
> at some point and went to fini, they attempted to free the variables
> which had undefined values, resulting in segfault (Sumit actually
> discovered this - quick reproducer is running i.e. useradd or groupadd
> tool as non-root)
>
> Also, allocation of group_ctx and tools_ctx in groupadd was reversed.
>
> Jakub
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Freeipa-devel mailing list
> Freeipa-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-devel
Ack and pushed to master.
- --
Stephen Gallagher
RHCE 804006346421761
Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkmz0u4ACgkQeiVVYja6o6NMTgCghc69leXUIGiKxyPzaQznWo2q
K0YAoJ9mkQdtllxgQtgwQscSurDrAhDA
=Xs08
-----END PGP SIGNATURE-----
More information about the Freeipa-devel
mailing list