commit | 8ecb506d3476aa58077e79ef1f75395625458fcc | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Fri Dec 08 15:13:28 2017 +0000 |
committer | David Howells <dhowells@redhat.com> | Fri Dec 08 15:13:28 2017 +0000 |
tree | ba19f50ebd9fd36dd9e38830c36207b4ef09996f | |
parent | 8dfd2f22d3bf3ab7714f7495ad5d897b8845e8c1 [diff] |
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: 99db44350672 ("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>