Changes in protocols/jabber/s5bytestream.c [17a6ee9:3ab1d31]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/s5bytestream.c
r17a6ee9 r3ab1d31 482 482 else if( ret < sizeof( struct socks5_message ) ) 483 483 { 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" ); 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; 488 489 } 489 490 … … 566 567 xt_free_node( reply ); 567 568 568 imcb_file_canceled( tf-> ic, tf->ft, "couldn't connect to any streamhosts" );569 imcb_file_canceled( tf->ft, "couldn't connect to any streamhosts" ); 569 570 570 571 bt->tf->watch_in = 0; … … 603 604 604 605 if( !jabber_write_packet( tf->ic, reply ) ) 605 imcb_file_canceled( tf-> ic, tf->ft, "Error transmitting bytestream response" );606 imcb_file_canceled( tf->ft, "Error transmitting bytestream response" ); 606 607 xt_free_node( reply ); 607 608 } … … 643 644 644 645 if( tf->bytesread >= tf->ft->file_size ) 645 imcb_file_finished( tf-> ic, tf->ft );646 imcb_file_finished( tf->ft ); 646 647 647 648 tf->ft->write( tf->ft, tf->ft->buffer, ret ); … … 659 660 if( tf->watch_in ) 660 661 { 661 imcb_file_canceled( tf->ic,ft, "BUG in jabber file transfer: write_request called when already watching for input" );662 imcb_file_canceled( ft, "BUG in jabber file transfer: write_request called when already watching for input" ); 662 663 return FALSE; 663 664 } … … 705 706 706 707 if( tf->byteswritten >= ft->file_size ) 707 imcb_file_finished( tf->ic,ft );708 imcb_file_finished( ft ); 708 709 else 709 710 bt->tf->watch_out = b_input_add( tf->fd, GAIM_INPUT_WRITE, jabber_bs_send_can_write, bt ); … … 1005 1006 1006 1007 if( !jabber_write_packet( tf->ic, iq ) ) 1007 imcb_file_canceled( tf-> ic, tf->ft, "Error transmitting bytestream request" );1008 imcb_file_canceled( tf->ft, "Error transmitting bytestream request" ); 1008 1009 return TRUE; 1009 1010 } … … 1020 1021 1021 1022 if( jd->streamhosts==NULL ) /* we're done here unless we have a proxy to try */ 1022 imcb_file_canceled( tf-> ic, tf->ft, error );1023 imcb_file_canceled( tf->ft, error ); 1023 1024 1024 1025 /* MUST always return FALSE! */
Note: See TracChangeset
for help on using the changeset viewer.