gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r21622 - gnunet/src/transport
Date: Tue, 29 May 2012 11:24:41 +0200

Author: wachs
Date: 2012-05-29 11:24:41 +0200 (Tue, 29 May 2012)
New Revision: 21622

Modified:
   gnunet/src/transport/plugin_transport_unix.c
Log:
- fix address length


Modified: gnunet/src/transport/plugin_transport_unix.c
===================================================================
--- gnunet/src/transport/plugin_transport_unix.c        2012-05-29 09:05:12 UTC 
(rev 21621)
+++ gnunet/src/transport/plugin_transport_unix.c        2012-05-29 09:24:41 UTC 
(rev 21622)
@@ -677,7 +677,6 @@
   }
 
   /* Create a new session */
-
   s = GNUNET_malloc (sizeof (struct Session) + address->address_length);
   s->addr = &s[1];
   s->addrlen = address->address_length;
@@ -828,7 +827,7 @@
   GNUNET_STATISTICS_set (plugin->env->stats,"# UNIX bytes received",
       plugin->bytes_in_recv, GNUNET_NO);
 
-  addr = GNUNET_HELLO_address_allocate(sender, "unix", un->sun_path, strlen 
(un->sun_path));
+  addr = GNUNET_HELLO_address_allocate(sender, "unix", un->sun_path, strlen 
(un->sun_path) + 1);
   s = lookup_session (plugin, sender, un);
   if (NULL == s)
     s = unix_plugin_get_session (plugin, addr);




reply via email to

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