From 0381849624d2a987e4bca2f86ca9c646c597a00f Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 9 Mar 2017 20:23:16 +0100 Subject: [PATCH] tcp unit tests: fixed that tcp_teardown() could lead to accessing a netif pointer that is not valid any more (netif added in test function stored on stack) (cherry picked from commit e9e9ec23b86fa3fcf3df6428bfa2c3e167a053e8) --- test/unit/tcp/test_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/tcp/test_tcp.c b/test/unit/tcp/test_tcp.c index 1e5ef03d..4abf4c87 100644 --- a/test/unit/tcp/test_tcp.c +++ b/test/unit/tcp/test_tcp.c @@ -46,9 +46,9 @@ tcp_setup(void) static void tcp_teardown(void) { - tcp_remove_all(); netif_list = NULL; netif_default = NULL; + tcp_remove_all(); }