summaryrefslogtreecommitdiffstats
path: root/audio/avdtp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-10-01 12:47:23 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-10-01 12:47:23 -0300
commit403d6642571256615600a9b248ea0b3d27978824 (patch)
treebb7384129ff3ceb7731f9bba2289313880e617ba /audio/avdtp.c
parent876f306ab4a819e747921c47717eb2d93d1792bb (diff)
Fix another potential invalid read.
Diffstat (limited to 'audio/avdtp.c')
-rw-r--r--audio/avdtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 592322f8..cccea053 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -2395,7 +2395,7 @@ gboolean avdtp_stream_remove_cb(struct avdtp *session,
for (cb = NULL, l = stream->callbacks; l != NULL; l = l->next) {
struct stream_callback *tmp = l->data;
- if (tmp->id == id) {
+ if (tmp && tmp->id == id) {
cb = tmp;
break;
}