From bf02319b58dfe36ca4d4c7f178849e4275969b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 24 Sep 2014 17:18:17 +0200 Subject: [PATCH] udp_proxy: don't overwrite delayed packets --- programs/test/udp_proxy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/test/udp_proxy.c b/programs/test/udp_proxy.c index cd4974d03..984ea5092 100644 --- a/programs/test/udp_proxy.c +++ b/programs/test/udp_proxy.c @@ -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 ) );