diff options
author | Andy Polyakov <appro@openssl.org> | 2017-04-12 00:05:26 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2017-04-25 23:54:06 +0200 |
commit | a84627454ba887bee7b6563a5101c2ce065ae386 (patch) | |
tree | eb8b8b1c0a1511033ff726a94a5bf11c9be19662 /crypto/asn1/a_int.c | |
parent | c2e8be7543952675059c12a828d438646562f94d (diff) |
asn1/a_int.c: don't write result if returning error.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3192)
(cherry picked from commit b997adb3a518b065240e70acf38ec5f77a937f53)
Diffstat (limited to 'crypto/asn1/a_int.c')
-rw-r--r-- | crypto/asn1/a_int.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/asn1/a_int.c b/crypto/asn1/a_int.c index a8fc213a73..fe700b22f7 100644 --- a/crypto/asn1/a_int.c +++ b/crypto/asn1/a_int.c @@ -202,7 +202,6 @@ static int asn1_get_uint64(uint64_t *pr, const unsigned char *b, size_t blen) ASN1err(ASN1_F_ASN1_GET_UINT64, ASN1_R_TOO_LARGE); return 0; } - *pr = 0; if (b == NULL) return 0; for (r = 0, i = 0; i < blen; i++) { |