Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/s5bytestream.c

    r3ab1d31 r17a6ee9  
    482482                        else if( ret < sizeof( struct socks5_message ) )
    483483                        {
    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" );
    489488                        }
    490489
     
    567566        xt_free_node( reply );
    568567
    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" );
    570569
    571570        bt->tf->watch_in = 0;
     
    604603               
    605604        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" );
    607606        xt_free_node( reply );
    608607}
     
    644643
    645644        if( tf->bytesread >= tf->ft->file_size )
    646                 imcb_file_finished( tf->ft );
     645                imcb_file_finished( tf->ic, tf->ft );
    647646
    648647        tf->ft->write( tf->ft, tf->ft->buffer, ret );   
     
    660659        if( tf->watch_in )
    661660        {
    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" );
    663662                return FALSE;
    664663        }
     
    706705
    707706        if( tf->byteswritten >= ft->file_size )
    708                 imcb_file_finished( ft );
     707                imcb_file_finished( tf->ic, ft );
    709708        else
    710709                bt->tf->watch_out = b_input_add( tf->fd, GAIM_INPUT_WRITE, jabber_bs_send_can_write, bt );
     
    10061005
    10071006        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" );
    10091008        return TRUE;
    10101009}
     
    10211020
    10221021        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 );
    10241023
    10251024        /* MUST always return FALSE! */
Note: See TracChangeset for help on using the changeset viewer.