Commit: dc659692881378cd174593c63a5675b2baba7c71
Parent: ba365020b9f52bb20a23c4d92199bc1bc0429f69
Author: Luiz Augusto Von Dentz <luiz.dentz-von@nokia.com>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:06
Tree: 51a968aeb8415778bf013608e7fa61b4e2f777f5

obexd: Fix bug when object size is unknown When object size is unknown we set the size as being -1 which is then cast to size_t * which is incorrect and may cause ENOSPC. To fix it the unknown object size is now passed as NULL pointer to the open callback which will just skip free space check as we don't know how much data is to be written.

Diffstat

M obexd/plugins/filesystem.c | 8 ++++++- -
M obexd/src/obex.c | 4 ++- -

2 files changed, 8 insertions(+), 4 deletions(-)

View Full Diff | Patch