File openssl-CVE-2009-0591.patch of Package openssl-0.9.8k

Index: openssl-0.9.8h/crypto/cms/cms_smime.c
===================================================================
--- openssl-0.9.8h.orig/crypto/cms/cms_smime.c
+++ openssl-0.9.8h/crypto/cms/cms_smime.c
@@ -425,7 +425,7 @@
 		for (i = 0; i < sk_CMS_SignerInfo_num(sinfos); i++)
 			{
 			si = sk_CMS_SignerInfo_value(sinfos, i);
-			if (!CMS_SignerInfo_verify_content(si, cmsbio))
+			if (CMS_SignerInfo_verify_content(si, cmsbio) <= 0)
 				{
 				CMSerr(CMS_F_CMS_VERIFY,
 					CMS_R_CONTENT_VERIFY_ERROR);