gatt: Fix possible crash when unable to generate hash
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 3 Jun 2020 17:31:59 +0000 (10:31 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commit5b48d863f9a7518704cca90b03d6f8a27c25157c
tree55ff525df31629112fe929590e72118982b48bec
parent524e1b22c3092f7c41f2d23a4d1d4345b10b5e2d
gatt: Fix possible crash when unable to generate hash

gatt_db_get_hash actually depends on crypto so platforms that don't
have it enabled shall not register GATT_CHARAC_DB_HASH as otherwise it
would cause a crash due to hash being NULL.

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