From 6ff349f3e6b5956e6b242ba7033338a848e3bee8 Mon Sep 17 00:00:00 2001 From: Fredrik Osterlind Date: Fri, 25 May 2012 14:36:13 +0200 Subject: [PATCH] bugfix in fragmentation test mode: avoid reading from outside buffer placed on stack --- examples/udp-ipv6/udp-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/udp-ipv6/udp-client.c b/examples/udp-ipv6/udp-client.c index da7cef859..96c06e066 100644 --- a/examples/udp-ipv6/udp-client.c +++ b/examples/udp-ipv6/udp-client.c @@ -56,11 +56,11 @@ tcpip_handler(void) } } /*---------------------------------------------------------------------------*/ +static char buf[MAX_PAYLOAD_LEN]; static void timeout_handler(void) { static int seq_id; - char buf[MAX_PAYLOAD_LEN]; printf("Client sending to: "); PRINT6ADDR(&client_conn->ripaddr);