mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-27 05:44:15 +01:00
Add support for cleanly exiting ssl_server2
Useful for memory testing
This commit is contained in:
parent
4cdb3babad
commit
aa02dc1ed8
@ -653,6 +653,12 @@ reset:
|
||||
len = ret;
|
||||
printf( " %d bytes read\n\n%s", len, (char *) buf );
|
||||
|
||||
if( len >= 10 && memcmp( buf, "SERVERQUIT", 10 ) == 0 )
|
||||
{
|
||||
ret = 0;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if( ret > 0 )
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user