Skip to content

Commit

Permalink
upnp_redirect(): accept NULL desc argument
Browse files Browse the repository at this point in the history
  • Loading branch information
miniupnp committed Dec 18, 2018
1 parent 13585f1 commit f321c20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions miniupnpd/upnpredirect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f321c20

Please sign in to comment.