mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 12:14:24 +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;
|
len = ret;
|
||||||
printf( " %d bytes read\n\n%s", len, (char *) buf );
|
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 )
|
if( ret > 0 )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user