]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
X.509: Fix error code in x509_cert_parse()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 8 Jun 2017 13:47:49 +0000 (14:47 +0100)
committerJames Morris <james.l.morris@oracle.com>
Fri, 9 Jun 2017 03:29:45 +0000 (13:29 +1000)
commit4e880168e9ffb1cdbdb72b3b48ab0324b30c2d62
tree5a709757c0c2bb76f748d8c734321aa0f71cb69c
parent381f20fceba8ea540aef5241a9099f4552700d0c
X.509: Fix error code in x509_cert_parse()

We forgot to set the error code on this path so it could result in
returning NULL which leads to a NULL dereference.

Fixes: db6c43bd2132 ("crypto: KEYS: convert public key and digsig asym to the akcipher api")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
crypto/asymmetric_keys/x509_cert_parser.c