bugfix in fragmentation test mode: avoid reading from outside buffer placed on stack

This commit is contained in:
Fredrik Osterlind 2012-05-25 14:36:13 +02:00
parent 8ebacd1a1a
commit 6ff349f3e6

View file

@ -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);