OSDN Git Service

obexd: Fix error returning in obc_transfer_put
authorSzymon Janc <szymon@janc.net.pl>
Wed, 13 Jun 2012 20:49:19 +0000 (22:49 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 4 Dec 2012 21:49:03 +0000 (22:49 +0100)
commit20340654cf4221da492cc5bc26764dfba5f80c9b
tree6ec0dbf125dadf327542695c64c968beaa83e306
parente1713aa11d83c30531ed503ec59dab94de43f87f
obexd: Fix error returning in obc_transfer_put

Always set error on failure in obc_transfer_put. This is expected by
callers and will avoid possible NULL pointer dereference.

Also fix improper use of errno variable (calling error may modify it)
and some dead assignments to perr.
obexd/client/transfer.c