diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-10-08 11:34:50 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-10-08 11:34:50 +0000 |
commit | 0d1a32ac9d3fcdcbcd4ea20b76a1818db819fea7 (patch) | |
tree | 79ced3c41200a4caa1a5547e63a951ac2e5cda37 /hcid | |
parent | 90ca244669504fe6a1a6a2760da9ce71c8742f4c (diff) |
Allow service classes to use Sequence16 and Sequence32
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/dbus-sdp.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) |