diff options
author | Andy Polyakov <appro@openssl.org> | 2017-04-12 00:05:26 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2017-04-14 11:56:39 +0200 |
commit | b997adb3a518b065240e70acf38ec5f77a937f53 (patch) | |
tree | a2305de1560733b545432205e84eb037b62afc8c /crypto/asn1 | |
parent | 6d4321fc242829490e1e7a36358eb12874c9b9e0 (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)
Diffstat (limited to 'crypto/asn1')
-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++) { |