diff options
Diffstat (limited to 'src/lib/libcrypto/ecdh/ech_ossl.c')
-rw-r--r-- | src/lib/libcrypto/ecdh/ech_ossl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ecdh/ech_ossl.c b/src/lib/libcrypto/ecdh/ech_ossl.c index d82ace3670..ee130edeee 100644 --- a/src/lib/libcrypto/ecdh/ech_ossl.c +++ b/src/lib/libcrypto/ecdh/ech_ossl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ech_ossl.c,v 1.7 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: ech_ossl.c,v 1.8 2014/07/12 16:03:37 miod Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
4 | * | 4 | * |
@@ -201,9 +201,10 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, | |||
201 | } | 201 | } |
202 | 202 | ||
203 | err: | 203 | err: |
204 | if (tmp) EC_POINT_free(tmp); | 204 | EC_POINT_free(tmp); |
205 | if (ctx) BN_CTX_end(ctx); | 205 | if (ctx) |
206 | if (ctx) BN_CTX_free(ctx); | 206 | BN_CTX_end(ctx); |
207 | BN_CTX_free(ctx); | ||
207 | free(buf); | 208 | free(buf); |
208 | return(ret); | 209 | return(ret); |
209 | } | 210 | } |