Fixed to check whether Ethernet cable state changed callback exists when it is released 61/110761/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Fri, 6 Jan 2017 08:15:35 +0000 (17:15 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Wed, 18 Jan 2017 02:02:39 +0000 (11:02 +0900)
commitbba231242b9cfab81cfcfe47fa5b602e26f1bd4c
treeb2dc05221615ac1d74fa87d566dffd3d1142e03f
parent52e80bc82a21146db8320a50f01462969a13fccf
Fixed to check whether Ethernet cable state changed callback exists when it is released

The callback can be registered for each connection handle
and the ref count is incremented each time it is registered.
However, when the callback is released,
the ref count is decremented without checking whether or not the callback is registered in the connection handle.
Therefore, the ref count can be 0 even though there is a valid callback, and the event may not be processed.

Change-Id: I0569e8d0a74ca647c5bcdba6c877e7374a89e6f9
packaging/capi-network-connection.spec
src/connection.c