mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
PKCS#7: fix unitialized boolean 'want'
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 <[email protected]> Signed-off-by: David Howells <[email protected]>
This commit is contained in:
parent
8e16789888
commit
06aae59242
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ EXPORT_SYMBOL_GPL(pkcs7_free_message);
|
|||
static int pkcs7_check_authattrs(struct pkcs7_message *msg)
|
||||
{
|
||||
struct pkcs7_signed_info *sinfo;
|
||||
bool want;
|
||||
bool want = false;
|
||||
|
||||
sinfo = msg->signed_infos;
|
||||
if (sinfo->authattrs) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue