From: Nikos Mavrogiannopoulos Date: Sat, 5 Nov 2011 08:22:04 +0000 (+0100) Subject: Report correct error on ECC key parsing error. X-Git-Tag: gnutls_3_0_6~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=87a4d5f682cea76b386e425bfd30a8926c51fc04;p=thirdparty%2Fgnutls.git Report correct error on ECC key parsing error. --- diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c index 106a13f89e..b9d2eca5cb 100644 --- a/lib/x509/privkey_pkcs8.c +++ b/lib/x509/privkey_pkcs8.c @@ -994,6 +994,7 @@ _decode_pkcs8_ecc_key (ASN1_TYPE pkcs8_asn, gnutls_x509_privkey_t pkey) _gnutls_free_datum (&tmp); if (pkey->key == NULL) { + ret = GNUTLS_E_PARSING_ERROR; gnutls_assert (); goto error; }