session: improve error reporting
Type: improvement Change-Id: I9dd850a1ce85b0adb5136233f176117e0ee38817 Signed-off-by: Florin Coras <fcoras@cisco.com>
This commit is contained in:

committed by
Dave Barach

parent
39aa7a5202
commit
00e01d3e87
@ -414,11 +414,11 @@ mbedtls_ctx_handshake_rx (tls_ctx_t * ctx)
|
||||
*/
|
||||
if (ctx->srv_hostname)
|
||||
{
|
||||
tls_notify_app_connected (ctx, /* is failed */ 0);
|
||||
tls_notify_app_connected (ctx, SESSION_E_TLS_HANDSHAKE);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
tls_notify_app_connected (ctx, /* is failed */ 0);
|
||||
tls_notify_app_connected (ctx, SESSION_E_NONE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user