Commit 2c1a5c10 authored by Michael Tuexen's avatar Michael Tuexen Committed by Dr. Stephen Henson
Browse files

DTLS handshake fix.

Reported by: Prashant Jaikumar <rmstar@gmail.com>

Fix handling of application data received before a handshake.
(cherry picked from commit 0c75eeac)
parent 71c34b7f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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,