[SSSD] [PATCH] Fix incorrect type comparison

Stephen Gallagher sgallagh at redhat.com
Mon Nov 15 20:24:30 UTC 2010


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

Fixes https://fedorahosted.org/sssd/ticket/657

sss_cli_check_socket returns an enum sss_status result code, but we were
assigning it to an enum nss_status variable before checking it.

Coincidentally, the success codes were the same, so we weren't seeing a
bug here, but it throws a warning on newer gcc and is just generally
wrong, so we'll fix it.

- -- 
Stephen Gallagher
RHCE 804006346421761

Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEUEARECAAYFAkzhlv4ACgkQeiVVYja6o6NedACYgEDBnCS9K3J9qIpoXaWtr2AF
cACeKpSiePGfbeN6YzX/PJpI/pb+G2Y=
=ymxA
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Fix-incorrect-type-comparison.patch
Type: text/x-patch
Size: 864 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101115/cdff94ff/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Fix-incorrect-type-comparison.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101115/cdff94ff/attachment.sig>


More information about the sssd-devel mailing list