summaryrefslogtreecommitdiff
path: root/toxcore/onion_announce.c
diff options
context:
space:
mode:
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