Commit 1ff2c992 authored by Bernd Edlinger's avatar Bernd Edlinger
Browse files

Clear the secret point in ecdh_simple_compute_key

parent 5743d126
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ int ecdh_simple_compute_key(unsigned char **pout, size_t *poutlen,
    ret = 1;

 err:
    EC_POINT_free(tmp);
    EC_POINT_clear_free(tmp);
    if (ctx)
        BN_CTX_end(ctx);
    BN_CTX_free(ctx);