gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r11548 - gnunet/src/transport
Date: Fri, 28 May 2010 13:55:03 +0200

Author: wachs
Date: 2010-05-28 13:55:03 +0200 (Fri, 28 May 2010)
New Revision: 11548

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-05-28 11:41:48 UTC 
(rev 11547)
+++ gnunet/src/transport/plugin_transport_http.c        2010-05-28 11:55:03 UTC 
(rev 11548)
@@ -683,10 +683,9 @@
   GNUNET_free (cur->next);
   cur->next = NULL;
   return GNUNET_OK;
-
-
 }
 
+
 static size_t send_read_callback(void *stream, size_t size, size_t nmemb, void 
*ptr)
 {
   struct Session * ses = ptr;
@@ -753,9 +752,9 @@
                     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                                 "Send to %s completed.\n", cs->ip);
                     if (GNUNET_OK != remove_http_message(cs, 
cs->pending_outbound_msg))
-                        GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Message could 
not be removed from session `%s'", GNUNET_i2s(&cs->sender));
+                      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Message could not 
be removed from session `%s'", GNUNET_i2s(&cs->sender));
 
-                    curl_easy_cleanup(cs->curl_handle);
+                      curl_easy_cleanup(cs->curl_handle);
                     cs->curl_handle=NULL;
 
                     /* Calling transmit continuation  */
@@ -949,20 +948,6 @@
   if ( tmp != msg)
     tmp->next = msg;
 
-  struct HTTP_Message * msg2 = GNUNET_malloc (sizeof (struct HTTP_Message));
-
-  if (ses->pending_outbound_msg == NULL)
-  {
-    ses->pending_outbound_msg = msg2;
-  }
-  tmp = ses->pending_outbound_msg;
-  while ( NULL != tmp->next)
-  {
-    tmp = tmp->next;
-  }
-  if ( tmp != msg2)
-    tmp->next = msg2;
-
   /* curl_easy_setopt(ses->curl_handle, CURLOPT_VERBOSE, 1L); */
   curl_easy_setopt(ses->curl_handle, CURLOPT_URL, url);
   curl_easy_setopt(ses->curl_handle, CURLOPT_PUT, 1L);
@@ -1151,7 +1136,6 @@
          cur = tmp;
       }
 
-
       GNUNET_free (cs->ip);
       GNUNET_free (cs->addr);
       GNUNET_free (cs);




reply via email to

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