diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-09 14:47:22 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-09 14:47:22 +0200 |
commit | 99c24bafe1619e6ace7e89be2ddea2e8f2eaf98f (patch) | |
tree | 05cf6cc38f3e326795270a8b1170787ff814f075 | |
parent | 7e1d898e394865ea31ae3f79f087ee726e55c01b (diff) |
Check for NULL stream
-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) { |