Skip to content

Commit 455cd51

Browse files
committed
update session checker
1 parent 7e2fc08 commit 455cd51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ngx_http_c_func_module.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,14 +1626,14 @@ ngx_http_c_func_output_filter(
16261626

16271627
internal_ctx = ngx_http_get_module_ctx(r, ngx_http_c_func_module);
16281628

1629-
if (internal_ctx->rc == NGX_HTTP_INTERNAL_SERVER_ERROR) {
1630-
ngx_log_error(NGX_LOG_EMERG, r->connection->log, 0, "Apps Internal Server error");
1629+
if (internal_ctx == NULL) {
1630+
ngx_log_error(NGX_LOG_EMERG, r->connection->log, 0, "Session is not valid");
16311631
ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
16321632
return;
16331633
}
16341634

1635-
if (internal_ctx == NULL) {
1636-
ngx_log_error(NGX_LOG_EMERG, r->connection->log, 0, "Session is not valid");
1635+
if (internal_ctx->rc == NGX_HTTP_INTERNAL_SERVER_ERROR) {
1636+
ngx_log_error(NGX_LOG_EMERG, r->connection->log, 0, "Apps Internal Server error");
16371637
ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
16381638
return;
16391639
}

0 commit comments

Comments
 (0)