summaryrefslogtreecommitdiffstats
path: root/sdpd
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-05-22 09:56:09 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-05-22 09:56:09 +0000
commitdd438cd1ffaeeba1840a8badcd03bd0313cbbee0 (patch)
tree6cbaa1a36e288254e562e48730f2ae40ff53e323 /sdpd
parentb93e2bf23ca82984b2a5dea852b02967fc33ca3c (diff)
Use server root if browse group is not public
Diffstat (limited to 'sdpd')
-rw-r--r--sdpd/service.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sdpd/service.c b/sdpd/service.c
index e469d841..8af2933f 100644
--- a/sdpd/service.c
+++ b/sdpd/service.c
@@ -110,10 +110,12 @@ void register_public_browse_group(int public)
sdp_set_service_classes(browse, browselist);
sdp_list_free(browselist, 0);
- if (public) {
+ if (public)
sdp_uuid16_create(&pbgid, PUBLIC_BROWSE_GROUP);
- sdp_set_group_id(browse, pbgid);
- }
+ else
+ sdp_uuid16_create(&pbgid, SDP_SERVER_SVCLASS_ID);
+
+ sdp_set_group_id(browse, pbgid);
}
/*