examples/tls_server: fix unclosed socket problem.
authorJunyeon LEE <junyeon2.lee@samsung.com>
Tue, 1 Aug 2017 04:57:11 +0000 (13:57 +0900)
committerEunBong Song <eunb.song@samsung.com>
Wed, 30 Aug 2017 04:15:48 +0000 (21:15 -0700)
commit205b59d2eb61b08f2d7033f9add232e6344e18e1
tree7755d7fd393c59b3f47979d7a29ae1f488b338e6
parenta6475f34624acccddd7abcd13ac69e7110bc0db7
examples/tls_server: fix unclosed socket problem.

If tls server would be executed double at the same time,
bind or listen socket can't be released properly.

Change the client_fd and listned_fd values from global
to local variable.

Change-Id: I0c3d97b5ade7692e92fa4967f04763d2295ab14f
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
apps/examples/tls_server/tls_server_main.c