Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/s5bytestream.c

    r17a6ee9 r3ab1d31  
    482482                        else if( ret < sizeof( struct socks5_message ) )
    483483                        {
    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;
    488489                        }
    489490
     
    566567        xt_free_node( reply );
    567568
    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" );
    569570
    570571        bt->tf->watch_in = 0;
     
    603604               
    604605        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" );
    606607        xt_free_node( reply );
    607608}
     
    643644
    644645        if( tf->bytesread >= tf->ft->file_size )
    645                 imcb_file_finished( tf->ic, tf->ft );
     646                imcb_file_finished( tf->ft );
    646647
    647648        tf->ft->write( tf->ft, tf->ft->buffer, ret );   
     
    659660        if( tf->watch_in )
    660661        {
    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" );
    662663                return FALSE;
    663664        }
     
    705706
    706707        if( tf->byteswritten >= ft->file_size )
    707                 imcb_file_finished( tf->ic, ft );
     708                imcb_file_finished( ft );
    708709        else
    709710                bt->tf->watch_out = b_input_add( tf->fd, GAIM_INPUT_WRITE, jabber_bs_send_can_write, bt );
     
    10051006
    10061007        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" );
    10081009        return TRUE;
    10091010}
     
    10201021
    10211022        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 );
    10231024
    10241025        /* MUST always return FALSE! */
Note: See TracChangeset for help on using the changeset viewer.