View | Details | Raw Unified | Return to bug 203768 | Differences between
and this patch

Collapse All | Expand All

(-)libtransmission/upnp.c (-1 / +5 lines)
Lines 86-92 tr_upnpDiscover (int msec) Link Here
86
  struct UPNPDev * ret;
86
  struct UPNPDev * ret;
87
  bool have_err;
87
  bool have_err;
88
88
89
#if (MINIUPNPC_API_VERSION >= 8) /* adds ipv6 and error args */
89
#if (MINIUPNPC_API_VERSION >= 14) /* security fix */
90
  int err = UPNPDISCOVER_SUCCESS;
91
  ret = upnpDiscover (msec, NULL, NULL, 0, 0, 2, &err);
92
  have_err = err != UPNPDISCOVER_SUCCESS;
93
#elif (MINIUPNPC_API_VERSION >= 8) /* adds ipv6 and error args */
90
  int err = UPNPDISCOVER_SUCCESS;
94
  int err = UPNPDISCOVER_SUCCESS;
91
  ret = upnpDiscover (msec, NULL, NULL, 0, 0, &err);
95
  ret = upnpDiscover (msec, NULL, NULL, 0, 0, &err);
92
  have_err = err != UPNPDISCOVER_SUCCESS;
96
  have_err = err != UPNPDISCOVER_SUCCESS;

Return to bug 203768