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/utils-test.c

    r9707 r10239  
    325325{
    326326    int port;
     327    char * scheme;
    327328    char * host;
    328329    char * path;
     
    331332
    332333    url = "http://www.some-tracker.org/some/path";
    333     check( !tr_httpParseURL( url, -1, &host, &port, &path ) )
     334    check( !tr_urlParse( url, -1, &scheme, &host, &port, &path ) )
     335    check( !strcmp( scheme, "http" ) )
    334336    check( !strcmp( host, "www.some-tracker.org" ) )
    335337    check( !strcmp( path, "/some/path" ) )
    336338    check( port == 80 )
     339    tr_free( scheme );
    337340    tr_free( path );
    338341    tr_free( host );
    339342
    340343    url = "http://www.some-tracker.org:80/some/path";
    341     check( !tr_httpParseURL( url, -1, &host, &port, &path ) )
     344    check( !tr_urlParse( url, -1, &scheme, &host, &port, &path ) )
     345    check( !strcmp( scheme, "http" ) )
    342346    check( !strcmp( host, "www.some-tracker.org" ) )
    343347    check( !strcmp( path, "/some/path" ) )
    344348    check( port == 80 )
     349    tr_free( scheme );
    345350    tr_free( path );
    346351    tr_free( host );
Note: See TracChangeset for help on using the changeset viewer.