Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authorLutz Jänicke <jaenicke@openssl.org>2002-12-29 23:58:55 +0300
committerLutz Jänicke <jaenicke@openssl.org>2002-12-29 23:58:55 +0300
commitef9d3a10c36aa30aa764923d42421395da4ce55d (patch)
tree58869f908ad1a7d7f8fff890b12679bbf489b89b /ssl
parent20c9a507105211e6050a63de01f13fd9ea96b126 (diff)
Fix wrong handling of session ID in SSLv2 client code.
PR: 377
Diffstat (limited to 'ssl')
-rw-r--r--ssl/s2_clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s2_clnt.c b/ssl/s2_clnt.c
index 0bc04d284e..c6319bb63d 100644
--- a/ssl/s2_clnt.c
+++ b/ssl/s2_clnt.c
@@ -1014,7 +1014,7 @@ static int get_server_finished(SSL *s)
* or bad things can happen */
/* ZZZZZZZZZZZZZ */
s->session->session_id_length=SSL2_SSL_SESSION_ID_LENGTH;
- memcpy(s->session->session_id,p,SSL2_SSL_SESSION_ID_LENGTH);
+ memcpy(s->session->session_id,p+1,SSL2_SSL_SESSION_ID_LENGTH);
}
else
{