Commit: 147dad195ebeb7398ff6e6f901314997448fed45
Parent: 99dd125c52150ffc88076d53948a8936cabe5c97
Author: Paulo Alcantara <paulo.alcantara@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-05-30 10:31:03
Tree: de3553c4ff47c80dd9eb46fc7bb23ee666784700

agent: Fix segmentation fault This patch fixes a segmentation fault when the agent leaves the bus and there is a request passkey pending. bluetoothd[3137]: src/agent.c:agent_exited() Agent exited without calling Unregister ==3137== Invalid read of size 8 ==3137== at 0x4489E7: device_get_adapter (device.c:2197) ==3137== by 0x448C69: passkey_cb (device.c:2757) ==3137== by 0x43FA47: agent_free (agent.c:168) ==3137== by 0x40A738: service_filter (watch.c:477) ==3137== by 0x40A450: message_filter (watch.c:527) ==3137== by 0x516451B: dbus_connection_dispatch (in /usr/lib64/libdbus-1.so.3.5.8) ==3137== by 0x409387: message_dispatch (mainloop.c:76) ==3137== by 0x4E7986A: g_timeout_dispatch (in /usr/lib64/libglib-2.0.so.0.3000.2) ==3137== by 0x4E78091: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3000.2) ==3137== by 0x4E78887: g_main_context_iterate.clone.6 (in /usr/lib64/libglib-2.0.so.0.3000.2) ==3137== by 0x4E78DD9: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3000.2) ==3137== by 0x431AA6: main (main.c:542) ==3137== Address 0xe818247c89102594 is not stack'd, malloc'd or (recently) free'd

Diffstat

M src/agent.c | 5 +++++

1 files changed, 5 insertions(+), 0 deletions(-)

View Full Diff | Patch