Ignore:
Timestamp:
Feb 20, 2010, 3:57:05 PM (12 years ago)
Author:
charles
Message:

(trunk) #2938 "crash when adding a torrent by URL from an ftp source over RPC" -- fixed in trunk for 1.91

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r10235 r10239  
    208208dns_cache_set_fail( struct tr_web_task * task, const char * host )
    209209{
    210     if( task->session->web != NULL )
     210    if( ( task->session->web != NULL ) && ( host != NULL ) )
    211211    {
    212212        struct dns_cache_item * item;
     
    464464    assert( task->resolved_host == NULL );
    465465
    466     if( !tr_httpParseURL( task->url, -1, &host, &port, NULL ) )
     466    if( !tr_urlParse( task->url, -1, NULL, &host, &port, NULL ) )
    467467    {
    468468        task->port = port;
Note: See TracChangeset for help on using the changeset viewer.