GNUNET_assert ( msg->easy_handle != NULL );
cs = find_session_by_curlhandle (msg->easy_handle);
GNUNET_assert ( cs != NULL );
+ GNUNET_assert ( cs->pending_outbound_msg != NULL );
switch (msg->msg)
{
__LINE__,
curl_easy_strerror (msg->data.result));
/* sending msg failed*/
- if ( NULL != cs->pending_outbound_msg->transmit_cont)
+ if (( NULL != cs->pending_outbound_msg) && ( NULL != cs->pending_outbound_msg->transmit_cont))
cs->pending_outbound_msg->transmit_cont (cs->pending_outbound_msg->transmit_cont_cls,&cs->sender,GNUNET_SYSERR);
}
else
cs->curl_handle=NULL;
/* Calling transmit continuation */
- if ( NULL != cs->pending_outbound_msg->transmit_cont)
+ if (( NULL != cs->pending_outbound_msg) && (NULL != cs->pending_outbound_msg->transmit_cont))
cs->pending_outbound_msg->transmit_cont (cs->pending_outbound_msg->transmit_cont_cls,&cs->sender,GNUNET_OK);
struct HTTP_Message * tmp;
int bytes_sent = 0;
+
+ address = NULL;
/* find session for peer */
ses = find_session_by_pi (target);
if (NULL != ses )
}
}
+ GNUNET_assert (address != NULL);
+
timeout = to;
/* setting up message */
msg = GNUNET_malloc (sizeof (struct HTTP_Message));