[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Richard Levitte
levitte at openssl.org
Tue Feb 21 23:49:06 UTC 2017
The branch OpenSSL_1_1_0-stable has been updated
via bc931874e97db89284175e11761cee777b29928d (commit)
from cc0a813f23136fb1f1aff8bf4cdc831ae3d360d4 (commit)
- Log -----------------------------------------------------------------
commit bc931874e97db89284175e11761cee777b29928d
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: Mon Feb 13 13:03:52 2017 +0100
Fix i2d_SSL_SESSION pp output parameter should point to end of asn1 data.
Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Rich Salz <rsalz at openssl.org>
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2607)
(cherry picked from commit a0179d0afb621a0875ddcfd939719a9628ac4444)
-----------------------------------------------------------------------
Summary of changes:
ssl/ssl_asn1.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ssl/ssl_asn1.c b/ssl/ssl_asn1.c
index aa6e3e6..8f55d8f 100644
--- a/ssl/ssl_asn1.c
+++ b/ssl/ssl_asn1.c
@@ -278,8 +278,8 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
goto err;
}
- p = as->cipher->data;
- id = 0x03000000L | ((unsigned long)p[0] << 8L) | (unsigned long)p[1];
+ id = 0x03000000L | ((unsigned long)as->cipher->data[0] << 8L)
+ | (unsigned long)as->cipher->data[1];
ret->cipher = NULL;
ret->cipher_id = id;
More information about the openssl-commits
mailing list