eet: add NULL check to eet_connection_empty API to avoid segfault 57/98657/2
authorPrateek Thakur <prateek.th@samsung.com>
Fri, 18 Nov 2016 06:16:31 +0000 (11:46 +0530)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 20 Jan 2017 03:29:10 +0000 (19:29 -0800)
commitb4a28b125640b982a3d395f4b05f079ea2847c97
treea54dd3f894cc487acee438efe4b2af48436f5f29
parentbcc71c46e75a323ad2d4dfa6c9e044e9ec90f964
eet: add NULL check to eet_connection_empty API to avoid segfault

Summary: porting of patch from upstream

commit 0b6e04d94fc3ff6447b6fbf0fcdbdd8b6958e621
Author: Artem Popov <artem.popov@samsung.com>
Date:   Wed Nov 16 15:30:29 2016 -0800

    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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Change-Id: I90113cfa41635f35a6c6ef6d1e1497841f484ce7
Signed-off-by: Prateek Thakur <prateek.th@samsung.com>