diff options
-rw-r--r-- | audio/avdtp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c index 98cbbab4..1c6f8e67 100644 --- a/audio/avdtp.c +++ b/audio/avdtp.c @@ -2414,6 +2414,9 @@ gboolean avdtp_stream_remove_cb(struct avdtp *session, GSList *l; struct stream_callback *cb; + if (!stream) + return FALSE; + for (cb = NULL, l = stream->callbacks; l != NULL; l = l->next) { struct stream_callback *tmp = l->data; if (tmp && tmp->id == id) { |