diff --git a/programs/ssl/ssl_fork_server.c b/programs/ssl/ssl_fork_server.c index 3f3c6ade8..42bba7207 100644 --- a/programs/ssl/ssl_fork_server.c +++ b/programs/ssl/ssl_fork_server.c @@ -342,8 +342,11 @@ int main( void ) len = ret; polarssl_printf( " %d bytes read\n\n%s", len, (char *) buf ); + + if( ret > 0 ) + break; } - while( 0 ); + while( 1 ); /* * 7. Write the 200 Response