mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 05:14:15 +01:00
udp_proxy: don't overwrite delayed packets
This commit is contained in:
parent
76fe9e41c1
commit
bf02319b58
@ -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 ) );
|
||||
|
Loading…
Reference in New Issue
Block a user