summaryrefslogtreecommitdiff
path: root/lib/sdp.h
diff options
context:
space:
mode:
authorFrédéric Dalleau <frederic.dalleau@linux.intel.com>2012-02-20 21:57:57 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2012-03-13 15:59:53 +0200
commitba9888c3cf663be883e5c7b78f1cf74e418a719c (patch)
tree08a020e00bd492739f3eeb9d7bf52c154aa12b7f /lib/sdp.h
parent817b2577f81092a37120e507c323c643cd65e6a9 (diff)
downloadbluez-ba9888c3cf663be883e5c7b78f1cf74e418a719c.tar.gz
sdp: Check type of sdp data before dereferencing
Diffstat (limited to 'lib/sdp.h')
-rw-r--r--lib/sdp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sdp.h b/lib/sdp.h
index 5f7d271b7..2fe74d54d 100644
--- a/lib/sdp.h
+++ b/lib/sdp.h
@@ -432,6 +432,7 @@ typedef struct {
} uuid_t;
#define SDP_IS_UUID(x) ((x) == SDP_UUID16 || (x) == SDP_UUID32 || (x) ==SDP_UUID128)
+#define SDP_IS_SEQ(x) ((x) == SDP_SEQ8 || (x) == SDP_SEQ16 || (x) == SDP_SEQ32)
typedef struct _sdp_list sdp_list_t;
struct _sdp_list {