Author: kotkov Date: Thu Jun 23 16:53:44 2022 New Revision: 1902209 URL: http://svn.apache.org/viewvc?rev=1902209&view=rev Log: * test/MockHTTPinC/MockHTTP_server.c (bio_apr_socket_ctrl): Following up on r1902208, simplify the code by returning the hit_eof value.
Modified: serf/trunk/test/MockHTTPinC/MockHTTP_server.c Modified: serf/trunk/test/MockHTTPinC/MockHTTP_server.c URL: http://svn.apache.org/viewvc/serf/trunk/test/MockHTTPinC/MockHTTP_server.c?rev=1902209&r1=1902208&r2=1902209&view=diff ============================================================================== --- serf/trunk/test/MockHTTPinC/MockHTTP_server.c (original) +++ serf/trunk/test/MockHTTPinC/MockHTTP_server.c Thu Jun 23 16:53:44 2022 @@ -2336,10 +2336,7 @@ static long bio_apr_socket_ctrl(BIO *bio case BIO_CTRL_POP: return 0; case BIO_CTRL_EOF: - if (ssl_ctx->hit_eof == YES) - return 1; - else - return 0; + return ssl_ctx->hit_eof; default: /* abort(); */ return 1;