DTLS handshake fix.

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

Fix handling of application data received before a handshake.
(cherry picked from commit 0c75eeacd3285b395dc75b65c3e6fe6ffbef59f0)
This commit is contained in:
Michael Tuexen 2013-08-08 13:28:55 +01:00 committed by Dr. Stephen Henson
parent 34eee35479
commit 799f203ff6

View File

@ -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,