eet: add NULL-check to eet_connection_empty API to avoid segfault
authorArtem Popov <artem.popov@samsung.com>
Wed, 16 Nov 2016 23:30:29 +0000 (15:30 -0800)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 07:23:55 +0000 (16:23 +0900)
commit3f0afb2644a89b239606c4af15e7b880f4be0573
treeb87f46288de2236aae604a495f7f5564b1a402da
parentfead9bfea2ce5087cbeef110b831fdecf826e267
eet: add NULL-check to eet_connection_empty API to avoid segfault

@fix

Summary:
Only eet_connection_empty hasn't checking on NULL and try to read from field of object.
Add NULL-check for connection and return result of empty connection.

Reviewers: jpeg, cedric, myoungwoon

Subscribers: t.naumenko, NikaWhite

Differential Revision: https://phab.enlightenment.org/D4399

Change-Id: Ia080d4bb4b38a61377381977a159cb0e260055ea
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/eet/eet_connection.c
src/lib/eet/eet_data.c