diff options
Diffstat (limited to 'src/lib/libssl/src/crypto/bn/bn_lib.c')
-rw-r--r-- | src/lib/libssl/src/crypto/bn/bn_lib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libssl/src/crypto/bn/bn_lib.c b/src/lib/libssl/src/crypto/bn/bn_lib.c index 4ee9b2bbde..d0cb49cd1e 100644 --- a/src/lib/libssl/src/crypto/bn/bn_lib.c +++ b/src/lib/libssl/src/crypto/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; |