Changeset 4142


Ignore:
Timestamp:
Dec 13, 2007, 2:48:30 AM (14 years ago)
Author:
charles
Message:

add extra debugging messages for upnpDiscover()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/upnp.c

    r4112 r4142  
    8989    if( handle->state == TR_UPNP_DISCOVER )
    9090    {
    91         struct UPNPDev * devlist = upnpDiscover( 2000, NULL );
     91        struct UPNPDev * devlist;
     92        errno = 0;
     93        devlist = upnpDiscover( 2000, NULL );
     94        if( devlist == NULL ) {
     95            tr_err( KEY "upnpDiscover returned NULL (errno %d - %s)", errno, strerror(errno) );
     96        }
    9297        errno = 0;
    9398        if( UPNP_GetValidIGD( devlist, &handle->urls, &handle->data, handle->lanaddr, sizeof(handle->lanaddr))) {
Note: See TracChangeset for help on using the changeset viewer.