mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-02 06:11:08 +00:00
Fix exit value on SERVERQUIT
This commit is contained in:
parent
7669f28421
commit
e8ea0c0421
|
@ -861,8 +861,8 @@ send_request:
|
|||
{
|
||||
--opt.reconnect;
|
||||
|
||||
printf( " ! Press a key to reconnect\n" );
|
||||
(void) getchar();
|
||||
// printf( " ! Press a key to reconnect\n" );
|
||||
// (void) getchar();
|
||||
|
||||
printf( " . Reconnecting with saved session..." );
|
||||
fflush( stdout );
|
||||
|
|
|
@ -822,7 +822,10 @@ reset:
|
|||
printf( " %d bytes read\n\n%s\n", len, (char *) buf );
|
||||
|
||||
if( memcmp( buf, "SERVERQUIT", 10 ) == 0 )
|
||||
{
|
||||
ret = 0;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if( ret > 0 )
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue