[SSSD] [PATCH] ELAPI: fix varargs call, update unit tests

Jakub Hrozek jhrozek at redhat.com
Thu Sep 17 14:40:38 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Fix another crash I noticed while integrating ELAPI..the
set_default_template functions has variable number of arguments and uses
E_EOARGS as sentinel. The call of set_default_template used in
get_default_template did not use any variable arguments, resulting in crash.

Also notes that the sentinel is a must instead of should in header file
(looking at process_arg_list() there is no other way to quit the
while(1) loop)

Update unit tests with two tests that stress this bug and the one in
elapi_init() fixed yesterday.

	Jakub
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkqySmYACgkQHsardTLnvCUnTACePgtJI97BGf2bPw6yMcoxBgdP
cU4AoMzgSVoJd6BteJ6m3rammQAF/ycI
=w2Lj
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ELAPI-fix-varargs-call-update-unit-tests.patch
Type: text/x-patch
Size: 3633 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20090917/ea5dfc5d/attachment.bin>


More information about the sssd-devel mailing list