core/advertising: Fix crash when client is added after unregistration
authorSimon Mikuda <simon.mikuda@streamunlimited.com>
Tue, 12 Nov 2019 13:56:35 +0000 (14:56 +0100)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:47 +0000 (14:30 +0530)
commit2f2ed98a67228dc67b265b413b775ffc7412ca1d
treec8cbd23aa6827849ce0914b64a1a8b3f5667c877
parentcf1de33bc6181894e60bbe2002777c6727c75eed
core/advertising: Fix crash when client is added after unregistration

After "register_advertisement()" callback "client_proxy_added()" was yet
called but it was actually called after: "unregister_advertisement()" which
caused segmentation fault because client was removed twice.

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