summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_pkt.c
diff options
context:
space:
mode:
authormiod <>2014-08-07 20:02:23 +0000
committermiod <>2014-08-07 20:02:23 +0000
commite58fb502ca02fb2bd4f85e5725abd1189d26921c (patch)
tree3edb8354ad6b2884901d930a4a6006640b51962b /src/lib/libssl/d1_pkt.c
parent15e8f255e119bc9bcc3d331677007d5263431e63 (diff)
downloadopenbsd-e58fb502ca02fb2bd4f85e5725abd1189d26921c.tar.gz
openbsd-e58fb502ca02fb2bd4f85e5725abd1189d26921c.tar.bz2
openbsd-e58fb502ca02fb2bd4f85e5725abd1189d26921c.zip
Oops, revert changes commited by mistake. The previous commit was supposed
to only apply to s23_srvr.c.
Diffstat (limited to 'src/lib/libssl/d1_pkt.c')
-rw-r--r--src/lib/libssl/d1_pkt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libssl/d1_pkt.c b/src/lib/libssl/d1_pkt.c
index 5be89f0955..7b0d67bf15 100644
--- a/src/lib/libssl/d1_pkt.c
+++ b/src/lib/libssl/d1_pkt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_pkt.c,v 1.33 2014/08/07 19:46:31 miod Exp $ */ 1/* $OpenBSD: d1_pkt.c,v 1.34 2014/08/07 20:02:23 miod Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -414,12 +414,10 @@ dtls1_process_record(SSL *s)
414 } 414 }
415 415
416 i = s->method->ssl3_enc->mac(s, md, 0 /* not send */); 416 i = s->method->ssl3_enc->mac(s, md, 0 /* not send */);
417 if (i < 0 || mac == NULL || 417 if (i < 0 || mac == NULL || timingsafe_memcmp(md, mac, (size_t)mac_size) != 0)
418 timingsafe_memcmp(md, mac, (size_t)mac_size) != 0)
419 enc_err = -1; 418 enc_err = -1;
420 if (rr->length > SSL3_RT_MAX_COMPRESSED_LENGTH + mac_size) 419 if (rr->length > SSL3_RT_MAX_COMPRESSED_LENGTH + mac_size)
421 enc_err = -1; 420 enc_err = -1;
422 OPENSSL_cleanse(&md, sizeof md);
423 } 421 }
424 422
425 if (enc_err < 0) { 423 if (enc_err < 0) {