gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r27717 - gnunet/src/transport
Date: Tue, 2 Jul 2013 13:19:14 +0200

Author: wachs
Date: 2013-07-02 13:19:13 +0200 (Tue, 02 Jul 2013)
New Revision: 27717

Modified:
   gnunet/src/transport/plugin_transport_http_server.c
Log:
fix:
- empty string if no url given
- print port as short


Modified: gnunet/src/transport/plugin_transport_http_server.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_server.c 2013-07-02 07:54:03 UTC 
(rev 27716)
+++ gnunet/src/transport/plugin_transport_http_server.c 2013-07-02 11:19:13 UTC 
(rev 27717)
@@ -2793,10 +2793,10 @@
         {
                pos_url = pos + 1;
                pos[0] = '\0';
-               GNUNET_asprintf (&plugin->external_hostname, "%s:%u/%s", tmp, 
port, pos_url);
+               GNUNET_asprintf (&plugin->external_hostname, "%s:%u/%s", tmp, 
(uint16_t) port, (NULL == pos_url) ? "" : pos_url);
         }
         else
-               GNUNET_asprintf (&plugin->external_hostname, "%s:%u", tmp, 
port);
+               GNUNET_asprintf (&plugin->external_hostname, "%s:%u", tmp, 
(uint16_t) port);
       }
       else
        plugin->external_hostname = GNUNET_strdup (tmp);




reply via email to

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