summaryrefslogtreecommitdiff
path: root/toxcore/onion_announce.c
diff options
context:
space:
mode:
authorirungentoo_trip <irungentoo@gmail.com>2014-10-25 08:51:43 -0700
committerirungentoo_trip <irungentoo@gmail.com>2014-10-25 08:51:43 -0700
commitb877d1dc1c5f52cc65393c12efa9769094b2cc7f (patch)
treed8c758eaa74ae8411ecbf4423a119ad3a990034d /toxcore/onion_announce.c
parentc8812d4734bc92be34df076accb3a8e416a94d9d (diff)
parent2aed4bb75efa39ccf3a38cf525db35f1deffcd23 (diff)
Merge branch 'master' of https://github.com/xor2003/toxcore
# # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
Diffstat (limited to 'toxcore/onion_announce.c')
-rw-r--r--toxcore/onion_announce.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/onion_announce.c b/toxcore/onion_announce.c
index b25b6b11..2b0de595 100644
--- a/toxcore/onion_announce.c
+++ b/toxcore/onion_announce.c
@@ -178,6 +178,9 @@ int send_data_request(Networking_Core *net, const Onion_Path *path, IP_Port dest
178 uint8_t packet[ONION_MAX_PACKET_SIZE]; 178 uint8_t packet[ONION_MAX_PACKET_SIZE];
179 len = create_onion_packet(packet, sizeof(packet), path, dest, request, len); 179 len = create_onion_packet(packet, sizeof(packet), path, dest, request, len);
180 180
181 if (len == -1)
182 return -1;
183
181 if (sendpacket(net, path->ip_port1, packet, len) != len) 184 if (sendpacket(net, path->ip_port1, packet, len) != len)
182 return -1; 185 return -1;
183 186