From 12b72c182e6e9885f88e5cc5cb1c5e22e7c25e0d Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Thu, 23 Aug 2018 13:15:36 +0100 Subject: [PATCH] UDP proxy: Fix bug in freeing delayed messages --- programs/test/udp_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/test/udp_proxy.c b/programs/test/udp_proxy.c index 0428d2888..258522003 100644 --- a/programs/test/udp_proxy.c +++ b/programs/test/udp_proxy.c @@ -562,7 +562,7 @@ static packet prev[MAX_DELAYED_MSG]; void clear_pending( void ) { - memset( &prev, 0, sizeof( packet ) ); + memset( &prev, 0, sizeof( prev ) ); prev_len = 0; }