1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-09-02 16:01:16 +03:00

udp_proxy: don't overwrite delayed packets

This commit is contained in:
Manuel Pégourié-Gonnard
2014-09-24 17:18:17 +02:00
committed by Paul Bakker
parent 76fe9e41c1
commit bf02319b58

View File

@@ -365,6 +365,7 @@ int handle_message( const char *way, int dst, int src )
strcmp( cur.type, "ChangeCipherSpec" ) == 0 ) ||
( opt.delay != 0 &&
strcmp( cur.type, "ApplicationData" ) != 0 &&
prev.dst == NULL &&
rand() % opt.delay == 0 ) )
{
memcpy( &prev, &cur, sizeof( packet ) );