Skip to content

Commit 463d60b

Browse files
authored
Merge pull request #63 from BenBE/fix-evhadler-uaf
Fix UAF in `ngx_http_uploadprogress_event_handler`
2 parents 0a0b806 + 9a4c984 commit 463d60b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngx_http_uploadprogress_module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,9 @@ static void ngx_http_uploadprogress_event_handler(ngx_http_request_t *r)
502502

503503

504504
if (shm_zone == NULL) {
505-
ngx_http_uploadprogress_strdupfree(id);
506505
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ngx_cycle->log, 0,
507506
"upload-progress: read_event_handler no shm_zone for id: %V", id);
507+
ngx_http_uploadprogress_strdupfree(id);
508508
return;
509509
}
510510

0 commit comments

Comments
 (0)