Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62f444e0 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull crypto fix from Herbert Xu:
 "This fixes a bug in pkcs7_validate_trust and its users where the
  output value may in fact be taken from uninitialised memory"

* 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
  PKCS#7: pkcs7_validate_trust(): initialize the _trusted output argument
parents 07c0db77 e5435891
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -178,6 +178,8 @@ int pkcs7_validate_trust(struct pkcs7_message *pkcs7,
	int cached_ret = -ENOKEY;
	int cached_ret = -ENOKEY;
	int ret;
	int ret;


	*_trusted = false;

	for (p = pkcs7->certs; p; p = p->next)
	for (p = pkcs7->certs; p; p = p->next)
		p->seen = false;
		p->seen = false;