summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@fh-muenster.de>2013-08-08 13:28:55 +0100
committerDr. Stephen Henson <steve@openssl.org>2013-08-08 13:32:11 +0100
commit76bf0cf27cadbb151b50bcc1f0630afa47f5e688 (patch)
tree32ed071e87d199beb0ba9e62b29f00349cec42a6 /ssl
parent7cf0529b52dca16bbfeca39e433402867303814c (diff)
DTLS handshake fix.
Reported by: Prashant Jaikumar <rmstar@gmail.com> Fix handling of application data received before a handshake. (cherry picked from commit 0c75eeacd3285b395dc75b65c3e6fe6ffbef59f0)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/d1_pkt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c
index 0bf87be6d2..e0bbcb982d 100644
--- a/ssl/d1_pkt.c
+++ b/ssl/d1_pkt.c
@@ -847,6 +847,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,