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


- Log -----------------------------------------------------------------
commit 61bdecbdd49faad0c9aed0f3366f1e4ea7f5dc75
Author: Bernd Edlinger <[email protected]>
Date:   Wed Feb 15 20:42:40 2017 +0100

    Fix a slightly confusing if condition in a2i_ASN1_ENUMERATED.
    
    Reviewed-by: Andy Polyakov <[email protected]>
    Reviewed-by: Rich Salz <[email protected]>
    (Merged from https://github.com/openssl/openssl/pull/2641)

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

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

diff --git a/crypto/asn1/f_enum.c b/crypto/asn1/f_enum.c
index 94cd54d..527f1d8 100644
--- a/crypto/asn1/f_enum.c
+++ b/crypto/asn1/f_enum.c
@@ -138,7 +138,7 @@ int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *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;
             }
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to