Changeset 14027 for branches


Ignore:
Timestamp:
Feb 18, 2013, 12:39:04 AM (9 years ago)
Author:
jordan
Message:

(2.7) backport r14026 for #5293

File:
1 edited

Legend:

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

    r14021 r14027  
    9191{
    9292    struct UPNPDev * ret = NULL;
     93
     94#if defined (HAVE_MINIUPNP_16)
    9395    int err = UPNPDISCOVER_SUCCESS;
    94 
    95 #if defined (HAVE_MINIUPNP_16)
    9696    ret = upnpDiscover (msec, NULL, NULL, 0, 0, &err);
     97    if (err != UPNPDISCOVER_SUCCESS)
    9798#elif defined (HAVE_MINIUPNP_15)
    9899    ret = upnpDiscover (msec, NULL, NULL, 0);
    99 #else
    100     ret = UPNPDISCOVER_UNKNOWN_ERROR;
    101 #endif
    102 
    103     if (ret != UPNPDISCOVER_SUCCESS)
     100    if (ret == NULL)
     101#endif
    104102        tr_ndbg (getKey (), "upnpDiscover failed (errno %d - %s)", errno, tr_strerror (errno));
    105103
Note: See TracChangeset for help on using the changeset viewer.