Add support for cleanly exiting ssl_server2

Useful for memory testing
This commit is contained in:
Manuel Pégourié-Gonnard 2014-11-20 17:28:18 +01:00
parent 4cdb3babad
commit aa02dc1ed8

View File

@ -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;
}