libsemanage: FIME binary_policy_path error checking
PATCH 18/84 libsemanage: FIME binary_policy_path error checking
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
man asprintf says
When successful, these functions return the number of bytes printed, just like sprintf(3). If memory allocation wasn't possible, or some other error occurs, these functions will return -1, and the contents of strp is undefined.
So checking for != 0 is wrong, I guess we should be check > -1; -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlD+pIUACgkQrlYvE4MpobPuxgCdHZdPKVhN8aQFm4w+7KMpQKDl EhIAmQGoiTZiaZ41zehFBisd5THvEmkN
=nqot
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.