upnpsoap.c: fix GetAssignedRoles()
This commit is contained in:
parent
b4be392156
commit
e91bda48d7
|
@ -1905,12 +1905,16 @@ GetAssignedRoles(struct upnphttp * h, const char * action)
|
||||||
"</u:%sResponse>";
|
"</u:%sResponse>";
|
||||||
char body[1024];
|
char body[1024];
|
||||||
int bodylen;
|
int bodylen;
|
||||||
const char * RoleList;
|
const char * RoleList; /* list of roles separated by spaces */
|
||||||
|
|
||||||
|
#ifdef ENABLE_HTTPS
|
||||||
if(h->ssl != NULL)
|
if(h->ssl != NULL)
|
||||||
RoleList = "Admin Basic";
|
RoleList = "Admin Basic";
|
||||||
else
|
else
|
||||||
RoleList = "Public";
|
RoleList = "Public";
|
||||||
|
#else
|
||||||
|
RoleList = "Public";
|
||||||
|
#endif
|
||||||
|
|
||||||
bodylen = snprintf(body, sizeof(body), resp,
|
bodylen = snprintf(body, sizeof(body), resp,
|
||||||
action, "urn:schemas-upnp-org:service:DeviceProtection:1",
|
action, "urn:schemas-upnp-org:service:DeviceProtection:1",
|
||||||
|
|
Loading…
Reference in New Issue