In BIO_write(), update the write statistics, not the read statistics.
[oweals/openssl.git] / crypto / asn1 / i2d_pr.c
index bbf2a0d2d6b06c9878189cd4a5f168655057e2bf..0be52c5b76ac197e1a84b99da6fa4e5120c9b9af 100644 (file)
@@ -89,7 +89,7 @@ int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp)
 #ifndef OPENSSL_NO_EC
        if (a->type == EVP_PKEY_EC)
                {
-               return(i2d_ECPrivateKey(a->pkey.eckey, pp));
+               return(i2d_ECPrivateKey(a->pkey.ec, pp));
                }
 #endif