Changeset 14021 for branches


Ignore:
Timestamp:
Feb 14, 2013, 11:51:06 PM (9 years ago)
Author:
jordan
Message:

(2.7x) backport r14020 to fix bug #5278 in 2.7x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7x/libtransmission/upnp.c

    r13631 r14021  
    9090tr_upnpDiscover (int msec)
    9191{
    92     int err = 0;
    9392    struct UPNPDev * ret = NULL;
     93    int err = UPNPDISCOVER_SUCCESS;
    9494
    9595#if defined (HAVE_MINIUPNP_16)
     
    9898    ret = upnpDiscover (msec, NULL, NULL, 0);
    9999#else
    100     ret = UPNPCOMMAND_UNKNOWN_ERROR;
    101 #endif
    102 
    103     if (ret != UPNPCOMMAND_SUCCESS)
    104         tr_ndbg (getKey (), "upnpDiscover failed (errno %d - %s)", err, tr_strerror (err));
     100    ret = UPNPDISCOVER_UNKNOWN_ERROR;
     101#endif
     102
     103    if (ret != UPNPDISCOVER_SUCCESS)
     104        tr_ndbg (getKey (), "upnpDiscover failed (errno %d - %s)", errno, tr_strerror (errno));
    105105
    106106    return ret;
Note: See TracChangeset for help on using the changeset viewer.