If kernel's crypto API does not work, we can't use
GATT database hash. So we add the exception case
for this.
Change-Id: Id4e5e9b7ff814aedd3f3e43d689ced3be8ee25dd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
hash = gatt_db_get_hash(database->db);
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ /* Kernel's crypto API does not support, hash value will be NULL */
+ if (hash == NULL) {
+ error("hash is NULL");
+ return;
+ }
+#endif
+
gatt_db_attribute_read_result(attrib, id, 0, hash, 16);
if (!get_dst_info(att, &bdaddr, &bdaddr_type))