shared/gatt-client: Fix not return error to callback
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 2 Jul 2020 16:01:05 +0000 (09:01 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commitf7205e18a694cd6067349e03ff9dbb569954e64a
tree9c8a250922fdb66023144cdb2926d334e5b7eb6b
parente7ee4499d1c3f08c565f44a317b14e489a24f93c
shared/gatt-client: Fix not return error to callback

If a CCC request has been cancelled the pdu given to the callback will
be NULL which was not translated to a proper error.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/gatt-client.c