aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_quota_compliance.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-13 19:16:38 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-13 19:16:38 +0000
commit7ab9567f3e7c8351685edeed8fe424a7219a25c5 (patch)
tree9835dbe9a9c96a52ca4f241226c69b2bd250ebb3 /src/core/test_core_quota_compliance.c
parentdf9e14ae741dfc3903e6089aea71124bd52f4e9a (diff)
downloadgnunet-7ab9567f3e7c8351685edeed8fe424a7219a25c5.tar.gz
gnunet-7ab9567f3e7c8351685edeed8fe424a7219a25c5.zip
-fix crash on error
Diffstat (limited to 'src/core/test_core_quota_compliance.c')
-rw-r--r--src/core/test_core_quota_compliance.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c
index dc345ba2b..df602b37f 100644
--- a/src/core/test_core_quota_compliance.c
+++ b/src/core/test_core_quota_compliance.c
@@ -169,14 +169,17 @@ terminate_task_error (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
169 169
170 GNUNET_TRANSPORT_get_hello_cancel (p1.ghh); 170 GNUNET_TRANSPORT_get_hello_cancel (p1.ghh);
171 GNUNET_TRANSPORT_get_hello_cancel (p2.ghh); 171 GNUNET_TRANSPORT_get_hello_cancel (p2.ghh);
172 172 if (NULL != p1.ch)
173 GNUNET_CORE_disconnect (p1.ch); 173 GNUNET_CORE_disconnect (p1.ch);
174 p1.ch = NULL; 174 p1.ch = NULL;
175 GNUNET_CORE_disconnect (p2.ch); 175 if (NULL != p2.ch)
176 GNUNET_CORE_disconnect (p2.ch);
176 p2.ch = NULL; 177 p2.ch = NULL;
177 GNUNET_TRANSPORT_disconnect (p1.th); 178 if (NULL != p1.th)
179 GNUNET_TRANSPORT_disconnect (p1.th);
178 p1.th = NULL; 180 p1.th = NULL;
179 GNUNET_TRANSPORT_disconnect (p2.th); 181 if (NULL != p2.th)
182 GNUNET_TRANSPORT_disconnect (p2.th);
180 p2.th = NULL; 183 p2.th = NULL;
181 ok = 42; 184 ok = 42;
182} 185}