examples/tls: fixes uninitialized timer context error
authorJunyeon LEE <junyeon2.lee@samsung.com>
Fri, 2 Jun 2017 07:03:25 +0000 (16:03 +0900)
committerEunBong Song <eunb.song@samsung.com>
Tue, 11 Jul 2017 11:10:03 +0000 (20:10 +0900)
commita1b6647143657d24b4331b77b82f0a9d83682e48
treee3a47796ba5c7366dcb61091699b9b9f7e6678e4
parent48674489866379069f2b283a390448143401e5e2
examples/tls: fixes uninitialized timer context error

This commit fixes two critical bugs in tls applications.

  . Uninitialized timer context error can occur when user
    tried to connect dtls in tls-application.
  . Unallocates mbedtls_timing_delay_context was used and
    it can make data abort in ssl_set_timer()

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