diff options
Diffstat (limited to 'src/transport/transport-testing-main.c')
-rw-r--r-- | src/transport/transport-testing-main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/transport/transport-testing-main.c b/src/transport/transport-testing-main.c index 8dfd51074..0b3840296 100644 --- a/src/transport/transport-testing-main.c +++ b/src/transport/transport-testing-main.c | |||
@@ -93,8 +93,11 @@ do_shutdown (void *cls) | |||
93 | } | 93 | } |
94 | for (unsigned int i=0;i<ccc->num_peers;i++) | 94 | for (unsigned int i=0;i<ccc->num_peers;i++) |
95 | { | 95 | { |
96 | GNUNET_TRANSPORT_TESTING_stop_peer (ccc->p[i]); | 96 | if (NULL != ccc->p[i]) |
97 | ccc->p[i] = NULL; | 97 | { |
98 | GNUNET_TRANSPORT_TESTING_stop_peer (ccc->p[i]); | ||
99 | ccc->p[i] = NULL; | ||
100 | } | ||
98 | } | 101 | } |
99 | } | 102 | } |
100 | 103 | ||