Parent: d2b34b6a68f0e00b75251f064af88af7515ee955
Author: Mikel Astiz <mikel.astiz@bmw-carit.de>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:22:04
Tree: 1d09dd93398b462848bf26664d27b428bd26baea
gobex: fix transfer search in transfer_complete The previous approach searched the transfer pointer itself, assuming that the transfers has not been modified if the pointer is in the list. However the callback could have removed the transfer and registered another one, which can eventually point to the same memory location. This is solved by looking for the transfer id instead of the pointer.
Diffstat
| M | gobex/gobex-transfer.c | | | 30 | +++++++++++++++++++- - - - - - - - - - - |
1 files changed, 19 insertions(+), 11 deletions(-)