diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-10-01 12:47:23 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-10-01 12:47:23 -0300 |
commit | 403d6642571256615600a9b248ea0b3d27978824 (patch) | |
tree | bb7384129ff3ceb7731f9bba2289313880e617ba | |
parent | 876f306ab4a819e747921c47717eb2d93d1792bb (diff) |
Fix another potential invalid read.
-rw-r--r-- | audio/avdtp.c | 2 |
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; } |