From e91bda48d771f2031101c26b19a64c2872b38219 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 9 Apr 2014 15:43:39 +0200 Subject: [PATCH] upnpsoap.c: fix GetAssignedRoles() --- miniupnpd/upnpsoap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/miniupnpd/upnpsoap.c b/miniupnpd/upnpsoap.c index e0e5b2b..28ee678 100644 --- a/miniupnpd/upnpsoap.c +++ b/miniupnpd/upnpsoap.c @@ -1905,12 +1905,16 @@ GetAssignedRoles(struct upnphttp * h, const char * action) ""; char body[1024]; int bodylen; - const char * RoleList; + const char * RoleList; /* list of roles separated by spaces */ +#ifdef ENABLE_HTTPS if(h->ssl != NULL) RoleList = "Admin Basic"; else RoleList = "Public"; +#else + RoleList = "Public"; +#endif bodylen = snprintf(body, sizeof(body), resp, action, "urn:schemas-upnp-org:service:DeviceProtection:1",