summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_manipulation.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-08-20 11:32:37 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-08-20 11:32:37 +0000
commit3be770f0af401c2d23366b951df830d7c0fcac64 (patch)
tree2ecb1e6300e5b3475a0d2a2dc77f0d21abdff700 /src/transport/gnunet-service-transport_manipulation.c
parent5bed496e33325c1df3d8b48d57fd1ea032b9a773 (diff)
fixing clang reports
Diffstat (limited to 'src/transport/gnunet-service-transport_manipulation.c')
-rw-r--r--src/transport/gnunet-service-transport_manipulation.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport_manipulation.c b/src/transport/gnunet-service-transport_manipulation.c
index be9cd2ba8..f66d15d82 100644
--- a/src/transport/gnunet-service-transport_manipulation.c
+++ b/src/transport/gnunet-service-transport_manipulation.c
@@ -712,7 +712,10 @@ GST_manipulation_peer_disconnect (const struct GNUNET_PeerIdentity *peer)
if (GNUNET_SCHEDULER_NO_TASK != generic_send_delay_task)
{
GNUNET_SCHEDULER_cancel (generic_send_delay_task);
- generic_send_delay_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_absolute_get_remaining(generic_dqe_head->sent_at), &send_delayed, generic_dqe_head);
+ if (NULL != generic_dqe_head)
+ generic_send_delay_task = GNUNET_SCHEDULER_add_delayed (
+ GNUNET_TIME_absolute_get_remaining(generic_dqe_head->sent_at),
+ &send_delayed, generic_dqe_head);
}
}
}