From a84627454ba887bee7b6563a5101c2ce065ae386 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 12 Apr 2017 00:05:26 +0200 Subject: [PATCH] asn1/a_int.c: don't write result if returning error. Reviewed-by: Rich Salz Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3192) (cherry picked from commit b997adb3a518b065240e70acf38ec5f77a937f53) --- crypto/asn1/a_int.c | 1 - 1 file changed, 1 deletion(-) 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++) { -- 2.25.1