OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30440a3
)
AI 143537: Sanity check to make sure the session still exists in auth_cb().
author
Mike Lockwood
<>
Mon, 30 Mar 2009 22:24:03 +0000
(15:24 -0700)
committer
The Android Open Source Project
<initial-contribution@android.com>
Mon, 30 Mar 2009 22:24:03 +0000
(15:24 -0700)
BUG=
1744549
Automated import of CL 143537
utils/audio/avdtp.c
patch
|
blob
|
history
diff --git
a/utils/audio/avdtp.c
b/utils/audio/avdtp.c
index
4710e66
..
12fc700
100644
(file)
--- a/
utils/audio/avdtp.c
+++ b/
utils/audio/avdtp.c
@@
-3000,6
+3000,11
@@
static void auth_cb(DBusError *derr, void *user_data)
struct audio_device *dev;
GIOChannel *io;
+ if (!g_slist_find(sessions, session)) {
+ error("auth_cb called after session was freed");
+ return;
+ }
+
if (derr && dbus_error_is_set(derr)) {
error("Access denied: %s", derr->message);
if (dbus_error_has_name(derr, DBUS_ERROR_NO_REPLY)) {