gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r11743 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r11743 - gnunet/src/transport
Date: Mon, 14 Jun 2010 14:35:04 +0200

Author: wachs
Date: 2010-06-14 14:35:04 +0200 (Mon, 14 Jun 2010)
New Revision: 11743

Modified:
   gnunet/src/transport/plugin_transport_http.c
Log:


Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c        2010-06-14 12:18:19 UTC 
(rev 11742)
+++ gnunet/src/transport/plugin_transport_http.c        2010-06-14 12:35:04 UTC 
(rev 11743)
@@ -994,6 +994,7 @@
               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)
                 {
 
@@ -1010,7 +1011,7 @@
                                __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
@@ -1024,7 +1025,7 @@
                     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);
 
 
@@ -1153,6 +1154,8 @@
   struct HTTP_Message * tmp;
   int bytes_sent = 0;
 
+
+  address = NULL;
   /* find session for peer */
   ses = find_session_by_pi (target);
   if (NULL != ses )
@@ -1211,6 +1214,8 @@
     }
   }
 
+  GNUNET_assert (address != NULL);
+
   timeout = to;
   /* setting up message */
   msg = GNUNET_malloc (sizeof (struct HTTP_Message));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]