Fix static analyzer warning.
@@ -4261,8 +4261,11 @@ int initial_close_test()
break;
}
}
+ if (ret == 0) {
ret = tls_api_connection_loop(test_ctx, &loss_mask, 0, &simulated_time);
+ }
+ if (ret == 0) {
if (test_ctx->cnx_server != NULL &&
test_ctx->cnx_server->cnx_state != picoquic_state_disconnected) {
DBG_PRINTF("Server state: %d, remote error: %x\n", test_ctx->cnx_server->cnx_state, test_ctx->cnx_server->remote_error);
@@ -4277,6 +4280,7 @@ int initial_close_test()
ret = -1;
}
}
+ }
if (test_ctx != NULL) {
tls_api_delete_ctx(test_ctx);
