mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Fix send_close_notify usage.
This commit is contained in:
@ -1299,8 +1299,10 @@ send_request:
|
||||
close_notify:
|
||||
printf( " . Closing the connection..." );
|
||||
|
||||
/* Don't check for errors, the connection might already be closed */
|
||||
ssl_close_notify( &ssl );
|
||||
/* No error checking, the connection might be closed already */
|
||||
do ret = ssl_close_notify( &ssl );
|
||||
while( ret == POLARSSL_ERR_NET_WANT_WRITE );
|
||||
ret = 0;
|
||||
|
||||
printf( " done\n" );
|
||||
|
||||
|
Reference in New Issue
Block a user