gatt: Fix registering DIS without a valid source
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 5 Mar 2021 22:23:44 +0000 (14:23 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:34 +0000 (19:08 +0530)
commit1ba40c63761c77903f391ff697c5736e957817f1
tree890f0379da0260462661bb96be1a97a1dbf89f65
parenta7795a82c9c5a0b2421010ec32f0f7709e75ba54
gatt: Fix registering DIS without a valid source

If source has not been set don't register DIS as it would not contain
any useful information and by doing this it actually allows systems to
register their own DIS instance.

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