From 7b1696aff3363783bf8a35cbde074a358374c974 Mon Sep 17 00:00:00 2001 From: Tom Stokes Date: Mon, 12 Mar 2012 16:50:27 -0700 Subject: [PATCH] upnperrors.c returns valid error string for unrecognized error codes --- miniupnpc/upnperrors.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miniupnpc/upnperrors.c b/miniupnpc/upnperrors.c index a48ae10..d459fe0 100644 --- a/miniupnpc/upnperrors.c +++ b/miniupnpc/upnperrors.c @@ -97,7 +97,8 @@ const char * strupnperror(int err) s = "ExternalPortOnlySupportsWildcard"; break; default: - s = NULL; + s = "UnknownError"; + break; } return s; }