pidgin/pidgin

Fix file transfer on Bonjour.

2020-11-15, Elliott Sales de Andrade
6bc507a73475
Parents db61db6af817
Children 807f0b114d36
Fix file transfer on Bonjour.

Testing Done:
Transferred to and from Pidgin 2 on the same system.

Reviewed at https://reviews.imfreedom.org/r/220/
--- a/libpurple/protocols/bonjour/bonjour_ft.c Sat Nov 14 16:55:17 2020 -0600
+++ b/libpurple/protocols/bonjour/bonjour_ft.c Sun Nov 15 01:41:47 2020 -0600
@@ -848,6 +848,7 @@
memcpy(xf->tx_buf + 5, xf->buddy_ip, strlen(xf->buddy_ip));
xf->tx_buf[5 + strlen(xf->buddy_ip)] = 0x00;
xf->tx_buf[6 + strlen(xf->buddy_ip)] = 0x00;
+ output = g_io_stream_get_output_stream(G_IO_STREAM(xf->conn));
g_output_stream_write_all_async(
output, xf->tx_buf, 7 + strlen(xf->buddy_ip), G_PRIORITY_DEFAULT,
xf->cancellable, bonjour_sock5_request_cb, xfer);