Commit: a963d4fe5d1cd3c0b19aab72fd1c9665ec0d5f95
Parent: 0c2ddc0dd480f58893fbff910f0c97254263118d
Author: Dmitriy Paliy <dmitriy.paliy@nokia.com>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:31
Tree: 6b2c059854f5bd0cc0ad2c7b992afa92c4fe79fd

obexd: Split up object and session in pbap.c Object and session data is separated in PBAP plugin. Reason is that when OBEX session firstly makes disconnect of service_data, which corresponds to session in pbap.c, it than closes object, which also corresponds to session in pbap.c. Memory is deallocated after PBAP session is disconnected. When OBEX driver closes the object, it is trying to dereference the deallocated memory in order to free pbap->buffer data. Here object and session are separated, while pointers are created to make one-to-one mapping. pbap_object is created in vobject_..._open functions after query to tracker submitted. Session and object are handled separately when freed.

Diffstat

M obexd/plugins/pbap.c | 94 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 59 insertions(+), 35 deletions(-)

View Full Diff | Patch