DTLS handshake fix.
Reported by: Prashant Jaikumar <rmstar@gmail.com>
Fix handling of application data received before a handshake.
(cherry picked from commit 0c75eeacd3
)
This commit is contained in:
parent
a44c9b9c33
commit
257df40f00
1 changed files with 6 additions and 0 deletions
|
@ -774,6 +774,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,
|
||||
|
|
Loading…
Reference in a new issue