]> git.hungrycats.org Git - linux/commit
PKCS#7: fix unitialized boolean 'want'
authorColin Ian King <colin.king@canonical.com>
Sat, 27 Feb 2016 12:45:26 +0000 (12:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Nov 2017 16:13:14 +0000 (17:13 +0100)
commit9c405157269dc7929280d7a9f0f07dc91fc77f58
tree090cec407570b2eb0e54f4ee9d0fcea98280d5b7
parentb01f1d60dd1c353acdc3a0fabb7507859d629a7c
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>
crypto/asymmetric_keys/pkcs7_parser.c