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

Collapse All | Expand All

(-)net-p2p/transmission-cli/files/patch-libtransmission_upnp.c (+15 lines)
Line 0 Link Here
1
--- libtransmission/upnp.c.orig	2014-07-01 17:08:59 UTC
2
+++ libtransmission/upnp.c
3
@@ -86,7 +86,11 @@ tr_upnpDiscover (int msec)
4
   struct UPNPDev * ret;
5
   bool have_err;
6
 
7
-#if (MINIUPNPC_API_VERSION >= 8) /* adds ipv6 and error args */
8
+#if (MINIUPNPC_API_VERSION >= 14) /* security fix */
9
+  int err = UPNPDISCOVER_SUCCESS;
10
+  ret = upnpDiscover (msec, NULL, NULL, 0, 0, 2, &err);
11
+  have_err = err != UPNPDISCOVER_SUCCESS;
12
+#elseif (MINIUPNPC_API_VERSION >= 8) /* adds ipv6 and error args */
13
   int err = UPNPDISCOVER_SUCCESS;
14
   ret = upnpDiscover (msec, NULL, NULL, 0, 0, &err);
15
   have_err = err != UPNPDISCOVER_SUCCESS;

Return to bug 203768