if (sapi_module.flush) {
SLS_FETCH();
- if (SG(server_context)) {
- sapi_module.flush(SG(server_context));
- return SUCCESS;
- }
+ sapi_module.flush(SG(server_context));
+ return SUCCESS;
+ } else {
+ return FAILURE;
}
- return FAILURE;
}
-
SAPI_API struct stat *sapi_get_stat()
{
SLS_FETCH();
static void sapi_apache_flush(void *server_context)
{
+ if (server_context) {
#if MODULE_MAGIC_NUMBER > 19970110
- rflush((request_rec *) server_context);
+ rflush((request_rec *) server_context);
#else
- bflush((request_rec *) server_context->connection->client);
+ bflush((request_rec *) server_context->connection->client);
#endif
+ }
}