diff options
Diffstat (limited to 'src/transport/plugin_transport_unix.c')
-rw-r--r-- | src/transport/plugin_transport_unix.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index a753db5ca..7e2601aed 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c | |||
@@ -1144,10 +1144,10 @@ unix_plugin_do_write (struct Plugin *plugin) | |||
1144 | GNUNET_TRANSPORT_SS_UPDATE); | 1144 | GNUNET_TRANSPORT_SS_UPDATE); |
1145 | return; /* Nothing to send at the moment */ | 1145 | return; /* Nothing to send at the moment */ |
1146 | } | 1146 | } |
1147 | 1147 | session = msgw->session; | |
1148 | sent = unix_real_send (plugin, | 1148 | sent = unix_real_send (plugin, |
1149 | plugin->unix_sock.desc, | 1149 | plugin->unix_sock.desc, |
1150 | &msgw->session->target, | 1150 | &session->target, |
1151 | (const char *) msgw->msg, | 1151 | (const char *) msgw->msg, |
1152 | msgw->msgsize, | 1152 | msgw->msgsize, |
1153 | msgw->priority, | 1153 | msgw->priority, |
@@ -1169,7 +1169,6 @@ unix_plugin_do_write (struct Plugin *plugin) | |||
1169 | GNUNET_CONTAINER_DLL_remove (plugin->msg_head, | 1169 | GNUNET_CONTAINER_DLL_remove (plugin->msg_head, |
1170 | plugin->msg_tail, | 1170 | plugin->msg_tail, |
1171 | msgw); | 1171 | msgw); |
1172 | session = msgw->session; | ||
1173 | session->msgs_in_queue--; | 1172 | session->msgs_in_queue--; |
1174 | GNUNET_assert (session->bytes_in_queue >= msgw->msgsize); | 1173 | GNUNET_assert (session->bytes_in_queue >= msgw->msgsize); |
1175 | session->bytes_in_queue -= msgw->msgsize; | 1174 | session->bytes_in_queue -= msgw->msgsize; |