From 4eda8234c2b5ea36343a39324d3099e20432c5a8 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 12 Feb 2016 15:58:19 +0100 Subject: [PATCH] reject mappings with wildcard ExternalPort --- miniupnpd/upnpsoap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/miniupnpd/upnpsoap.c b/miniupnpd/upnpsoap.c index 9d698e2..4a5d1d0 100644 --- a/miniupnpd/upnpsoap.c +++ b/miniupnpd/upnpsoap.c @@ -427,14 +427,12 @@ AddPortMapping(struct upnphttp * h, const char * action, const char * ns) eport = (unsigned short)atoi(ext_port); iport = (unsigned short)atoi(int_port); - /* TODO : check if we are supporting wildcard ExternalPort if (strcmp(ext_port, "*") == 0 || eport == 0) { ClearNameValueList(&data); SoapError(h, 716, "Wildcard not permited in ExtPort"); return; } - */ leaseduration = leaseduration_str ? atoi(leaseduration_str) : 0; #ifdef IGD_V2