diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2017-01-29 15:20:19 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2017-01-29 15:20:19 +0000 |
commit | eb253d19ab9fadfe802887340543fdb6d81abbef (patch) | |
tree | ec68ef97babdcddfd8ed7683e147693f7924463d /lib/libssl | |
parent | 0cb51ae93b5b0da9639ddd50a8101c4704c65f51 (diff) |
Avoid clearing the mac_packet flag in the wrong place.
In many cases we got away with this, however if a server sends multiple
handshake messages in the same record only the first message would be added
to the MAC.
Should fix breakage reported by various people.
Diffstat (limited to 'lib/libssl')
-rw-r--r-- | lib/libssl/ssl_both.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libssl/ssl_both.c b/lib/libssl/ssl_both.c index 0a330028096..2d79c24c86f 100644 --- a/lib/libssl/ssl_both.c +++ b/lib/libssl/ssl_both.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_both.c,v 1.4 2017/01/26 12:16:13 beck Exp $ */ +/* $OpenBSD: ssl_both.c,v 1.5 2017/01/29 15:20:18 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -523,7 +523,6 @@ ssl3_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok) if (s->internal->mac_packet) { tls1_finish_mac(s, (unsigned char *)s->internal->init_buf->data, s->internal->init_num + 4); - s->internal->mac_packet = 0; if (s->internal->msg_callback) s->internal->msg_callback(0, s->version, |