Parent: 1e36c9b468af0da4bc8fa213d1438f534957692d
Author: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-08-30 15:53:57
Tree: 50820defa6449d3f71b2e900614f5b1737edaac6
Fix fd usage when not connected When the avctp channel is not connected, we call g_io_channel_unix_get_fd() with a NULL pointer. Glib does not check the pointer before dereferencing it, causing bluetoothd to segv. Move the function call to the place it's actually needed, after the safety checks.
Diffstat
| M | audio/control.c | | | 4 | +++- |
1 files changed, 3 insertions(+), 1 deletions(-)