Permalink
Browse files

upnp_redirect(): accept NULL desc argument

  • Loading branch information...
miniupnp committed Dec 18, 2018
1 parent 13585f1 commit f321c2066b96d18afa5158dfa2d2873a2957ef38
Showing with 4 additions and 0 deletions.
  1. +4 −0 miniupnpd/upnpredirect.c
@@ -356,6 +356,10 @@ upnp_redirect(const char * rhost, unsigned short eport,
"%hu->%s:%hu %s", eport, iaddr, iport, protocol);
return -3;
}

if (desc == NULL)
desc = ""; /* assume empty description */

/* IGDv1 (WANIPConnection:1 Service Template Version 1.01 / Nov 12, 2001)
* - 2.2.20.PortMappingDescription :
* Overwriting Previous / Existing Port Mappings:

0 comments on commit f321c20

Please sign in to comment.