aboutsummaryrefslogtreecommitdiff
path: root/net/dante/files/patch-lib_upnp.c
blob: 4bbd8361b4d506c772c396a9a2216532819cf6c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- lib/upnp.c.orig	2020-11-11 16:11:55 UTC
+++ lib/upnp.c
@@ -208,7 +208,11 @@ socks_initupnp(gw, emsg, emsglen)
          socks_autoadd_directroute(&commands, &protocols, &saddr, &smask);
       }
 
-      devtype = UPNP_GetValidIGD(dev, &url, &data, myaddr, sizeof(myaddr));
+      devtype = UPNP_GetValidIGD(dev, &url, &data, myaddr, sizeof(myaddr)
+#if MINIUPNPC_API_VERSION > 17
+      , NULL, 0
+#endif
+      );
       switch (devtype) {
          case UPNP_NO_IGD:
             snprintf(emsg, emsglen, "no UPNP IGD discovered on local network");