Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/http_client.c

    rdd7b931 r286cd48  
    292292
    293293cleanup:
     294        /* Avoid g_source_remove warnings */
     295        req->inpa = 0;
     296
    294297        if( req->ssl )
    295298                ssl_disconnect( req->ssl );
     
    329332       
    330333        /* Turns out writing a proper chunked-encoding state machine is not
    331            that simple. :-( */
     334           that simple. :-( I've tested this one feeding it byte by byte so
     335           I hope it's solid now. */
    332336        chunk = req->cbuf;
    333337        eos = req->cbuf + req->cblen;
     
    358362                        return CR_EOF;
    359363               
     364                /* Wait for the whole chunk to arrive. */
    360365                if( s + clen > eos )
    361366                        break;
     
    645650                g_free( req->request );
    646651                g_free( req->reply_headers );
     652                g_free( req->sbuf );
    647653                req->request = new_request;
    648654                req->request_length = strlen( new_request );
    649655                req->bytes_read = req->bytes_written = req->inpa = 0;
    650656                req->reply_headers = req->reply_body = NULL;
     657                req->sbuf = req->cbuf = NULL;
     658                req->sblen = req->cblen = 0;
    651659               
    652660                return FALSE;
Note: See TracChangeset for help on using the changeset viewer.