diff options
author | Michael Tuexen <tuexen@fh-muenster.de> | 2013-08-08 13:28:55 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-08-08 13:30:49 +0100 |
commit | 0c75eeacd3285b395dc75b65c3e6fe6ffbef59f0 (patch) | |
tree | 8707f39dbb8fed6701955cfd3846b22a02f1e4a0 | |
parent | 5ae8d6bcbaff99423a2608559d738a3fcf7ed6dc (diff) | |
download | openssl-new-0c75eeacd3285b395dc75b65c3e6fe6ffbef59f0.tar.gz |
DTLS handshake fix.
Reported by: Prashant Jaikumar <rmstar@gmail.com>
Fix handling of application data received before a handshake.
-rw-r--r-- | ssl/d1_pkt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 9b600fdf53..4464a305d2 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -848,6 +848,12 @@ start: } } + if (s->d1->listen && rr->type != SSL3_RT_HANDSHAKE) + { + rr->length = 0; + goto start; + } + /* we now have a packet which can be read and processed */ if (s->s3->change_cipher_spec /* set when we receive ChangeCipherSpec, |