Pārlūkot izejas kodu

Merge pull request #63 from BenBE/fix-evhadler-uaf

Fix UAF in `ngx_http_uploadprogress_event_handler`
tags/v0.9.4^0
Brice Figureau 1 gadu atpakaļ
vecāks
revīzija
463d60b502
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      ngx_http_uploadprogress_module.c

+ 1
- 1
ngx_http_uploadprogress_module.c Parādīt failu

@@ -502,9 +502,9 @@ static void ngx_http_uploadprogress_event_handler(ngx_http_request_t *r)
502 502
 
503 503
 
504 504
     if (shm_zone == NULL) {
505
-        ngx_http_uploadprogress_strdupfree(id);
506 505
         ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ngx_cycle->log, 0,
507 506
                        "upload-progress: read_event_handler no shm_zone for id: %V", id);
507
+        ngx_http_uploadprogress_strdupfree(id);
508 508
         return;
509 509
     }
510 510
 

Notiek ielāde…
Atcelt
Saglabāt