[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Rich Salz rsalz at openssl.org
Fri Feb 17 15:01:03 UTC 2017


The branch OpenSSL_1_0_2-stable has been updated
       via  d0f38a1b8dbced5366177d41490c6fabe0014e56 (commit)
      from  61bdecbdd49faad0c9aed0f3366f1e4ea7f5dc75 (commit)


- Log -----------------------------------------------------------------
commit d0f38a1b8dbced5366177d41490c6fabe0014e56
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date:   Wed Feb 15 20:01:53 2017 +0100

    Fix a slightly confusing if condition in a2i_ASN1_INTEGER.
    
    Reviewed-by: Andy Polyakov <appro at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/2640)
    (cherry picked from commit aa402e2ba408254c052b5750b14e7f01e48bced1)

-----------------------------------------------------------------------

Summary of changes:
 crypto/asn1/f_int.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/asn1/f_int.c b/crypto/asn1/f_int.c
index 2bdc78d..e6ed7f1 100644
--- a/crypto/asn1/f_int.c
+++ b/crypto/asn1/f_int.c
@@ -152,7 +152,7 @@ int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size)
         bufp = (unsigned char *)buf;
         if (first) {
             first = 0;
-            if ((bufp[0] == '0') && (buf[1] == '0')) {
+            if ((bufp[0] == '0') && (bufp[1] == '0')) {
                 bufp += 2;
                 i -= 2;
             }


More information about the openssl-commits mailing list