Commit: b4543a010566473d456e6045482cf2bc31a41f9f
Parent: 3be8272df51ed3df43945bef434acb9008af23e5
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-01-24 23:56:22
Tree: 6d4d5d10a323cda4f3ec695701262eb18af44bbf

attrib: Fix crash if g_attrib_new() fails If g_attrib_new() fails for some reason (e.g. bt_io_get() fails), it will return NULL. Crash reported by Valgrind: ==2845== Invalid read of size 4 ==2845== at 0x40C6CC4: g_io_channel_unix_get_fd (giounix.c:655) ==2845== Address 0x3c is not stack'd, malloc'd or (recently) free'd

Diffstat

M src/attrib-server.c | 3 +++

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

View Full Diff | Patch