upnpsoap.c: fix GetAssignedRoles()

This commit is contained in:
Thomas Bernard 2014-04-09 15:43:39 +02:00
parent b4be392156
commit e91bda48d7
1 changed files with 5 additions and 1 deletions

View File

@ -1905,12 +1905,16 @@ GetAssignedRoles(struct upnphttp * h, const char * action)
"</u:%sResponse>";
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",