ecore_con: fix ECORE_CON_LOCAL_SYSTEM use with negative port number.
authorSrivardhan Hebbar <sri.hebbar@samsung.com>
Wed, 18 Mar 2015 14:33:19 +0000 (15:33 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 18 Mar 2015 14:37:09 +0000 (15:37 +0100)
commitb1f74c615a57115933ba86ca63bc2da7f3d44f0c
treec5abab717b1b9269cd6b6fb9f787df1cc38109eb
parent4c0f37b93ce143d90d4557680c5c50a331217d0a
ecore_con: fix ECORE_CON_LOCAL_SYSTEM use with negative port number.

Summary:
The socket can be created even with negative port number, but in that case the port
is ignored so that you can connect to non Ecore_Con based IPC. This patch remove
that test to make the client and server match.

@fix

Bug: While creating ECORE_CON_LOCAL_SYSTEM server and client pair, when the socket
name was "test_socket" and port number "-8" (Any negative number). Then while creating
listening socket, the code would go to line no 291 and socket is created in tmp by
".ecore_servicetest_socket|-8". When the same is passed to bind then the code would
go to line 118 and the socket it would try to bind would be ".ecore_servicetest_socket" !!
So the bind would fail.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/ecore_con/ecore_con_local.c