{
ats_new[d] = ats[d];
m_tmp = UINT32_MAX;
- g_tmp = UINT32_MAX;
if (NULL != tmp)
m_tmp = find_metric (tmp, ntohl(ats[d].type), TM_RECEIVE);
g_tmp = find_metric (&man_handle.general, ntohl(ats[d].type), TM_RECEIVE);
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);
}
}
}