From 0d1a32ac9d3fcdcbcd4ea20b76a1818db819fea7 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 8 Oct 2007 11:34:50 +0000 Subject: Allow service classes to use Sequence16 and Sequence32 --- hcid/dbus-sdp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hcid') diff --git a/hcid/dbus-sdp.c b/hcid/dbus-sdp.c index 37825843..4d486905 100644 --- a/hcid/dbus-sdp.c +++ b/hcid/dbus-sdp.c @@ -672,7 +672,10 @@ static const char *extract_service_class(sdp_data_t *d) static char uuid_str[37]; /* Expected sequence of UUID16 */ - if (d->attrId != SDP_ATTR_SVCLASS_ID_LIST || d->dtd != SDP_SEQ8) + if (d->attrId != SDP_ATTR_SVCLASS_ID_LIST) + return NULL; + + if (d->dtd != SDP_SEQ8 && d->dtd != SDP_SEQ16 && d->dtd != SDP_SEQ32) return NULL; if (!d->val.dataseq) -- cgit