summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-communicator-unix.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-06-04 20:54:16 +0200
committerChristian Grothoff <christian@grothoff.org>2019-06-04 20:54:24 +0200
commit2cce8be6b8fcb2baa0d7abde4bbe486cbcb3f983 (patch)
tree28bde1eaa1de1f569404d879689a411d9cdbe678 /src/transport/gnunet-communicator-unix.c
parent18c183d3cb8f12790ed55333519b53a535a5c906 (diff)
misc bugfixes
Diffstat (limited to 'src/transport/gnunet-communicator-unix.c')
-rw-r--r--src/transport/gnunet-communicator-unix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transport/gnunet-communicator-unix.c b/src/transport/gnunet-communicator-unix.c
index 642703f29..9bbc02c65 100644
--- a/src/transport/gnunet-communicator-unix.c
+++ b/src/transport/gnunet-communicator-unix.c
@@ -417,6 +417,7 @@ select_write_cb (void *cls)
struct Queue *queue = queue_tail;
const struct GNUNET_MessageHeader *msg = queue->msg;
size_t msg_size = ntohs (msg->size);
+ const void *msg;
ssize_t sent;
/* take queue of the ready list */
@@ -432,12 +433,13 @@ select_write_cb (void *cls)
NULL);
/* send 'msg' */
+ msg = queue->msg;
queue->msg = NULL;
GNUNET_MQ_impl_send_continue (queue->mq);
resend:
/* Send the data */
sent = GNUNET_NETWORK_socket_sendto (unix_sock,
- queue->msg,
+ msg,
msg_size,
(const struct sockaddr *) queue->address,
queue->address_len);