diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2010-02-10 12:29:16 -0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-02-11 23:36:49 -0200 |
commit | d9b3dff970f78d9774a4d36dc90119063f73ee9e (patch) | |
tree | 6bfac944de2c3fa714f16b5ba6389400c617b05f /audio | |
parent | cc9913c73ec3f9ea881a3cb6d9482345f23b0328 (diff) | |
download | bluez-d9b3dff970f78d9774a4d36dc90119063f73ee9e.tar.gz |
Fix segmentation fault when headset disconnects during authorization
Headset authorization callback is not being removed when the headset
disconnects during authorization. Cancel authorization function of
audio devices doesn't iterate the callbacks list properly.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/device.c b/audio/device.c index b8ea927fc..76aaddd84 100644 --- a/audio/device.c +++ b/audio/device.c @@ -781,7 +781,7 @@ int audio_device_cancel_authorization(struct audio_device *dev, GSList *l, *next; for (l = priv->auths; l != NULL; l = next) { - struct service_auth *auth = priv->auths->data; + struct service_auth *auth = l->data; next = g_slist_next(l); |