diff options
| author | miod <> | 2014-07-12 16:03:37 +0000 |
|---|---|---|
| committer | miod <> | 2014-07-12 16:03:37 +0000 |
| commit | 1ae7466a2fdd60df6484d8d132d70a044fd58c92 (patch) | |
| tree | b756e0522f06b8c8ef257885370d0ada8f818fa8 /src/lib/libcrypto/ec/ec2_mult.c | |
| parent | 3c4c98fca81949fb441815860d40ad66626df65d (diff) | |
| download | openbsd-1ae7466a2fdd60df6484d8d132d70a044fd58c92.tar.gz openbsd-1ae7466a2fdd60df6484d8d132d70a044fd58c92.tar.bz2 openbsd-1ae7466a2fdd60df6484d8d132d70a044fd58c92.zip | |
if (x) FOO_free(x) -> FOO_free(x).
Improves readability, keeps the code smaller so that it is warmer in your
cache.
review & ok deraadt@
Diffstat (limited to 'src/lib/libcrypto/ec/ec2_mult.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ec2_mult.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/libcrypto/ec/ec2_mult.c b/src/lib/libcrypto/ec/ec2_mult.c index 6c3a759dc8..c74571f88c 100644 --- a/src/lib/libcrypto/ec/ec2_mult.c +++ b/src/lib/libcrypto/ec/ec2_mult.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec2_mult.c,v 1.4 2014/07/10 22:45:56 jsing Exp $ */ | 1 | /* $OpenBSD: ec2_mult.c,v 1.5 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 | * |
| @@ -421,12 +421,9 @@ ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, | |||
| 421 | ret = 1; | 421 | ret = 1; |
| 422 | 422 | ||
| 423 | err: | 423 | err: |
| 424 | if (p) | 424 | EC_POINT_free(p); |
| 425 | EC_POINT_free(p); | 425 | EC_POINT_free(acc); |
| 426 | if (acc) | 426 | BN_CTX_free(new_ctx); |
| 427 | EC_POINT_free(acc); | ||
| 428 | if (new_ctx != NULL) | ||
| 429 | BN_CTX_free(new_ctx); | ||
| 430 | return ret; | 427 | return ret; |
| 431 | } | 428 | } |
| 432 | 429 | ||
