summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hcid/dbus-sdp.c5
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)