summaryrefslogtreecommitdiffstats
path: root/audio/avdtp.c
diff options
context:
space:
mode:
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;
}