projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ae8d6b
)
DTLS handshake fix.
author
Michael Tuexen
<tuexen@fh-muenster.de>
Thu, 8 Aug 2013 12:28:55 +0000
(13:28 +0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 8 Aug 2013 12:30:49 +0000
(13:30 +0100)
Reported by: Prashant Jaikumar <rmstar@gmail.com>
Fix handling of application data received before a handshake.
ssl/d1_pkt.c
patch
|
blob
|
history
diff --git
a/ssl/d1_pkt.c
b/ssl/d1_pkt.c
index 9b600fdf53d4192d4a88e0426f18e5580becdeb3..4464a305d239857889978d68825f289879667796 100644
(file)
--- 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,