Changes in protocols/jabber/s5bytestream.c [3ab1d31:17a6ee9]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/s5bytestream.c
r3ab1d31 r17a6ee9 482 482 else if( ret < sizeof( struct socks5_message ) ) 483 483 { 484 /* Either a buggy proxy or just one that doesnt regard 485 * the SHOULD in XEP-0065 saying the reply SHOULD 486 * contain the address. We'll take it, so make sure the 487 * next jabber_bs_peek starts with an empty buffer. */ 488 bt->peek_buf_len = 0; 484 /* Either a buggy proxy or just one that doesnt regard the SHOULD in XEP-0065 485 * saying the reply SHOULD contain the address */ 486 487 ASSERTSOCKOP( ret = recv( fd, &socks5_reply, ret, 0 ), "Dequeuing after MSG_PEEK" ); 489 488 } 490 489 … … 567 566 xt_free_node( reply ); 568 567 569 imcb_file_canceled( tf-> ft, "couldn't connect to any streamhosts" );568 imcb_file_canceled( tf->ic, tf->ft, "couldn't connect to any streamhosts" ); 570 569 571 570 bt->tf->watch_in = 0; … … 604 603 605 604 if( !jabber_write_packet( tf->ic, reply ) ) 606 imcb_file_canceled( tf-> ft, "Error transmitting bytestream response" );605 imcb_file_canceled( tf->ic, tf->ft, "Error transmitting bytestream response" ); 607 606 xt_free_node( reply ); 608 607 } … … 644 643 645 644 if( tf->bytesread >= tf->ft->file_size ) 646 imcb_file_finished( tf-> ft );645 imcb_file_finished( tf->ic, tf->ft ); 647 646 648 647 tf->ft->write( tf->ft, tf->ft->buffer, ret ); … … 660 659 if( tf->watch_in ) 661 660 { 662 imcb_file_canceled( ft, "BUG in jabber file transfer: write_request called when already watching for input" );661 imcb_file_canceled( tf->ic, ft, "BUG in jabber file transfer: write_request called when already watching for input" ); 663 662 return FALSE; 664 663 } … … 706 705 707 706 if( tf->byteswritten >= ft->file_size ) 708 imcb_file_finished( ft );707 imcb_file_finished( tf->ic, ft ); 709 708 else 710 709 bt->tf->watch_out = b_input_add( tf->fd, GAIM_INPUT_WRITE, jabber_bs_send_can_write, bt ); … … 1006 1005 1007 1006 if( !jabber_write_packet( tf->ic, iq ) ) 1008 imcb_file_canceled( tf-> ft, "Error transmitting bytestream request" );1007 imcb_file_canceled( tf->ic, tf->ft, "Error transmitting bytestream request" ); 1009 1008 return TRUE; 1010 1009 } … … 1021 1020 1022 1021 if( jd->streamhosts==NULL ) /* we're done here unless we have a proxy to try */ 1023 imcb_file_canceled( tf-> ft, error );1022 imcb_file_canceled( tf->ic, tf->ft, error ); 1024 1023 1025 1024 /* MUST always return FALSE! */
Note: See TracChangeset
for help on using the changeset viewer.