mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 05:05:38 +01:00
Fix send_close_notify usage.
This commit is contained in:
parent
6a0017b7c0
commit
34377b1e1c
@ -1299,8 +1299,10 @@ send_request:
|
|||||||
close_notify:
|
close_notify:
|
||||||
printf( " . Closing the connection..." );
|
printf( " . Closing the connection..." );
|
||||||
|
|
||||||
/* Don't check for errors, the connection might already be closed */
|
/* No error checking, the connection might be closed already */
|
||||||
ssl_close_notify( &ssl );
|
do ret = ssl_close_notify( &ssl );
|
||||||
|
while( ret == POLARSSL_ERR_NET_WANT_WRITE );
|
||||||
|
ret = 0;
|
||||||
|
|
||||||
printf( " done\n" );
|
printf( " done\n" );
|
||||||
|
|
||||||
|
@ -1803,8 +1803,10 @@ data_exchange:
|
|||||||
close_notify:
|
close_notify:
|
||||||
printf( " . Closing the connection..." );
|
printf( " . Closing the connection..." );
|
||||||
|
|
||||||
/* Don't check for errors, the connection might already be closed */
|
/* No error checking, the connection might be closed already */
|
||||||
ssl_close_notify( &ssl );
|
do ret = ssl_close_notify( &ssl );
|
||||||
|
while( ret == POLARSSL_ERR_NET_WANT_WRITE );
|
||||||
|
ret = 0;
|
||||||
|
|
||||||
printf( " done\n" );
|
printf( " done\n" );
|
||||||
goto reset;
|
goto reset;
|
||||||
|
Loading…
Reference in New Issue
Block a user