Skip to content

Commit 9c40515

Browse files
Colin Ian Kinggregkh
authored andcommitted
PKCS#7: fix unitialized boolean 'want'
commit 06aae592425701851e02bb850cb9f4997f0ae163 upstream. The boolean want is not initialized and hence garbage. The default should be false (later it is only set to true on tne sinfo->authattrs check). Found with static analysis using CoverityScan Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David Howells <dhowells@redhat.com> Cc: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b01f1d6 commit 9c40515

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crypto/asymmetric_keys/pkcs7_parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ EXPORT_SYMBOL_GPL(pkcs7_free_message);
8787
static int pkcs7_check_authattrs(struct pkcs7_message *msg)
8888
{
8989
struct pkcs7_signed_info *sinfo;
90-
bool want;
90+
bool want = false;
9191

9292
sinfo = msg->signed_infos;
9393
if (!sinfo)

0 commit comments

Comments
 (0)