summaryrefslogtreecommitdiff
path: root/ssl/s3_both.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2014-01-07 19:02:08 +0000
committerXin LI <delphij@FreeBSD.org>2014-01-07 19:02:08 +0000
commitcbbee3a581d0bbf1b738c0805da55a438c265a20 (patch)
tree2e2eb91a8a37902a3e02fcc8726521f89373fdd8 /ssl/s3_both.c
parented4c5254dd244e65403ee0ca57f1a5727ff1761d (diff)
Notes
Diffstat (limited to 'ssl/s3_both.c')
-rw-r--r--ssl/s3_both.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ssl/s3_both.c b/ssl/s3_both.c
index ead01c82a14a..ae0ee27c41aa 100644
--- a/ssl/s3_both.c
+++ b/ssl/s3_both.c
@@ -208,7 +208,11 @@ static void ssl3_take_mac(SSL *s)
{
const char *sender;
int slen;
-
+ /* If no new cipher setup return immediately: other functions will
+ * set the appropriate error.
+ */
+ if (s->s3->tmp.new_cipher == NULL)
+ return;
if (s->state & SSL_ST_CONNECT)
{
sender=s->method->ssl3_enc->server_finished_label;