core: Fix not forwarding errors caused by SDP search properly
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 21 Oct 2013 13:04:08 +0000 (16:04 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 29 Oct 2013 14:13:22 +0000 (16:13 +0200)
commit12b2081a1824380d18cf324b7d5df8e50f755fe1
treecba1acb9f9271c69705926b8c355d52e0a17051f
parent4412625bf966b5c366ed3698ace34b6152933bad
core: Fix not forwarding errors caused by SDP search properly

In case bt_search_service fails while processing (e.g. connection is
dropped) the error forward is a positive value leading
btd_service_connecting_complete to not change any state at all.

Futhermore the error from sdp_process was completely ignored which may
cause problems as well.
src/sdp-client.c