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:
34eee35
)
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:32:26 +0000
(13:32 +0100)
Reported by: Prashant Jaikumar <rmstar@gmail.com>
Fix handling of application data received before a handshake.
(cherry picked from commit
0c75eeacd3285b395dc75b65c3e6fe6ffbef59f0
)
ssl/d1_pkt.c
patch
|
blob
|
history
diff --git
a/ssl/d1_pkt.c
b/ssl/d1_pkt.c
index 9b013e491c1691dbc339a215acc1e12a9d70e932..eb68030d1430252ca5d18aa92639f0c5a2f5b559 100644
(file)
--- a/
ssl/d1_pkt.c
+++ b/
ssl/d1_pkt.c
@@
-812,6
+812,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,