ecore_con: preventing possible NULL pointer dereference.
authorSrivardhan Hebbar <sri.hebbar@samsung.com>
Thu, 8 Oct 2015 10:26:55 +0000 (12:26 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 9 Oct 2015 08:00:32 +0000 (10:00 +0200)
commit54b47a78ebe35f5f35d83b1aa774354b7d69604f
tree1a44dba06f16b22f0a9bf0dfa64c0dec0dbf198c
parent01e42f86abb5d060437af68fab5c8b5afe267d08
ecore_con: preventing possible NULL pointer dereference.

Summary:
Checking if client is NULL before freeing is not of much use. If it is NULL, it would have crashed before when it was dereferenced in printf. So checking NULL before dereferencing.
Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/examples/ecore/ecore_con_server_simple_example.c