[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34644 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34644 - gnunet/src/transport |
Date: |
Tue, 16 Dec 2014 20:20:34 +0100 |
Author: grothoff
Date: 2014-12-16 20:20:34 +0100 (Tue, 16 Dec 2014)
New Revision: 34644
Modified:
gnunet/src/transport/plugin_transport_unix.c
Log:
-fix use of possibly wrong or uninitialized session
Modified: gnunet/src/transport/plugin_transport_unix.c
===================================================================
--- gnunet/src/transport/plugin_transport_unix.c 2014-12-16 19:11:41 UTC
(rev 34643)
+++ gnunet/src/transport/plugin_transport_unix.c 2014-12-16 19:20:34 UTC
(rev 34644)
@@ -1144,10 +1144,10 @@
GNUNET_TRANSPORT_SS_UPDATE);
return; /* Nothing to send at the moment */
}
-
+ session = msgw->session;
sent = unix_real_send (plugin,
plugin->unix_sock.desc,
- &msgw->session->target,
+ &session->target,
(const char *) msgw->msg,
msgw->msgsize,
msgw->priority,
@@ -1169,7 +1169,6 @@
GNUNET_CONTAINER_DLL_remove (plugin->msg_head,
plugin->msg_tail,
msgw);
- session = msgw->session;
session->msgs_in_queue--;
GNUNET_assert (session->bytes_in_queue >= msgw->msgsize);
session->bytes_in_queue -= msgw->msgsize;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34644 - gnunet/src/transport,
gnunet <=