diff options
Diffstat (limited to 'src/lib/libssl/s3_both.c')
-rw-r--r-- | src/lib/libssl/s3_both.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libssl/s3_both.c b/src/lib/libssl/s3_both.c index 0d9cc3d65c..ffc10774d8 100644 --- a/src/lib/libssl/s3_both.c +++ b/src/lib/libssl/s3_both.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_both.c,v 1.33 2014/12/10 15:36:46 jsing Exp $ */ | 1 | /* $OpenBSD: s3_both.c,v 1.34 2014/12/10 15:43:31 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -464,7 +464,11 @@ ssl3_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok) | |||
464 | * start a new handshake?). We need to restart the mac. | 464 | * start a new handshake?). We need to restart the mac. |
465 | * Don't increment {num,total}_renegotiations because | 465 | * Don't increment {num,total}_renegotiations because |
466 | * we have not completed the handshake. */ | 466 | * we have not completed the handshake. */ |
467 | ssl3_init_finished_mac(s); | 467 | if (!ssl3_init_finished_mac(s)) { |
468 | SSLerr(SSL_F_SSL3_GET_MESSAGE, | ||
469 | ERR_R_MALLOC_FAILURE); | ||
470 | goto err; | ||
471 | } | ||
468 | } | 472 | } |
469 | 473 | ||
470 | s->s3->tmp.message_type= *(p++); | 474 | s->s3->tmp.message_type= *(p++); |