]> git.baikalelectronics.ru Git - kernel.git/commit
pkcs7: return correct error code if pkcs7_check_authattrs() fails
authorEric Biggers <ebiggers@google.com>
Fri, 8 Dec 2017 15:13:28 +0000 (15:13 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 8 Dec 2017 15:13:28 +0000 (15:13 +0000)
commit75d30ad9e0bfdca69185c3c93a45dc0065e95877
treeba19f50ebd9fd36dd9e38830c36207b4ef09996f
parent8241d73acd5c635943d554cd40cfc7b4d673a0c1
pkcs7: return correct error code if pkcs7_check_authattrs() fails

If pkcs7_check_authattrs() returns an error code, we should pass that
error code on, rather than using ENOMEM.

Fixes: 66fee9df94fa ("PKCS#7: Appropriately restrict authenticated attributes and content type")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: James Morris <james.l.morris@oracle.com>
crypto/asymmetric_keys/pkcs7_parser.c