aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2014-11-17 19:23:58 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-17 19:23:58 +0000
commita955aadf7f0ddcfa05ade9f9d9d995cefb9ae681 (patch)
tree9be152621569253fe4f791f02251e362472752d9
parentd3efa0eaa9ec7894f959bc1a8a84ca5bc3f54f10 (diff)
parenteb90b9851be9363739e46546e8e7955f2ee15fde (diff)
downloadopenssl-a955aadf7f0ddcfa05ade9f9d9d995cefb9ae681.tar.gz
am eb90b985: Merge "Follow-up for 1.0.1j upgrade"
* commit 'eb90b9851be9363739e46546e8e7955f2ee15fde': Follow-up for 1.0.1j upgrade
-rw-r--r--patches/0013-tls_psk_hint.patch2
-rw-r--r--ssl/s3_clnt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/patches/0013-tls_psk_hint.patch b/patches/0013-tls_psk_hint.patch
index e9237eba2c..60fbf73dc1 100644
--- a/patches/0013-tls_psk_hint.patch
+++ b/patches/0013-tls_psk_hint.patch
@@ -170,7 +170,7 @@ index 12c3fe8..17367a2 100644
+ memset(identity, 0, sizeof(identity));
- psk_len = s->psk_client_callback(s, s->ctx->psk_identity_hint,
+ psk_len = s->psk_client_callback(s, s->session->psk_identity_hint,
- identity, sizeof(identity - 1), psk, sizeof(psk));
+ identity, sizeof(identity) - 1, psk, sizeof(psk));
if (psk_len > PSK_MAX_PSK_LEN)
{
@@ -2374,21 +2378,6 @@ int ssl3_send_client_key_exchange(SSL *s)
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c
index 8a81793e98..61ff8db6c9 100644
--- a/ssl/s3_clnt.c
+++ b/ssl/s3_clnt.c
@@ -2490,7 +2490,7 @@ int ssl3_send_client_key_exchange(SSL *s)
memset(identity, 0, sizeof(identity));
psk_len = s->psk_client_callback(s, s->session->psk_identity_hint,
- identity, sizeof(identity - 1), psk, sizeof(psk));
+ identity, sizeof(identity) - 1, psk, sizeof(psk));
if (psk_len > PSK_MAX_PSK_LEN)
{
SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,