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/bn/bn_lib.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/bn/bn_lib.c')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_lib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn_lib.c b/src/lib/libcrypto/bn/bn_lib.c index 4ee9b2bbde..d0cb49cd1e 100644 --- a/src/lib/libcrypto/bn/bn_lib.c +++ b/src/lib/libcrypto/bn/bn_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_lib.c,v 1.32 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: bn_lib.c,v 1.33 2014/07/12 16:03:36 miod Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -585,8 +585,7 @@ BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret) | |||
| 585 | i = ((n - 1) / BN_BYTES) + 1; | 585 | i = ((n - 1) / BN_BYTES) + 1; |
| 586 | m = ((n - 1) % (BN_BYTES)); | 586 | m = ((n - 1) % (BN_BYTES)); |
| 587 | if (bn_wexpand(ret, (int)i) == NULL) { | 587 | if (bn_wexpand(ret, (int)i) == NULL) { |
| 588 | if (bn) | 588 | BN_free(bn); |
| 589 | BN_free(bn); | ||
| 590 | return NULL; | 589 | return NULL; |
| 591 | } | 590 | } |
| 592 | ret->top = i; | 591 | ret->top = i; |
