From 782e99873ae1599d9046c5acf2d153cb2e609449 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Wed, 29 Nov 2017 23:31:36 -0800 Subject: [PATCH] upnphttp: Don't select an empty interface address When determining which address to present to the client for a resource URL, we should never use an empty string. --- upnphttp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upnphttp.c b/upnphttp.c index 3b4b58a..8d5f9b1 100644 --- a/upnphttp.c +++ b/upnphttp.c @@ -268,14 +268,14 @@ ParseHttpHeaders(struct upnphttp * h) p = colon + 1; while(isspace(*p)) p++; - for(n = 0; niface = n; break;