Browse Source

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)

STABLE-2_1_x
goldsimon 9 years ago
parent
commit
e9e9ec23b8
  1. 2
      test/unit/tcp/test_tcp.c

2
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();
}

Loading…
Cancel
Save