projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
910b3a8
)
ssl/t1_enc.c: check EVP_MD_CTX_copy return value.
author
Andy Polyakov
<appro@openssl.org>
Tue, 25 Feb 2014 21:21:54 +0000
(22:21 +0100)
committer
Andy Polyakov
<appro@openssl.org>
Tue, 25 Feb 2014 21:24:52 +0000
(22:24 +0100)
PR: 3201
(cherry picked from commit
03da57fe14f2de5bde9d4496a2ae9a4ae8879f88
)
ssl/t1_enc.c
patch
|
blob
|
history
diff --git
a/ssl/t1_enc.c
b/ssl/t1_enc.c
index 6c76b5c19c1534ec7bf7503de579582e65c64755..e8224e63ecd1e8aacfb5928bdbc921dd31c3e213 100644
(file)
--- a/
ssl/t1_enc.c
+++ b/
ssl/t1_enc.c
@@
-887,7
+887,8
@@
int tls1_mac(SSL *ssl, unsigned char *md, int send)
}
else
{
- EVP_MD_CTX_copy(&hmac,hash);
+ if (!EVP_MD_CTX_copy(&hmac,hash))
+ return -1;
mac_ctx = &hmac;
}