Skip to content

Commit f088970

Browse files
author
Marc Stern
committed
msr->msc_full_request_buffer is freed but not assigned to NULL. It could be freed again later
1 parent e803cdd commit f088970

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apache2/modsecurity.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ static apr_status_t modsecurity_tx_cleanup(void *data) {
330330
msr->msc_full_request_buffer != NULL) {
331331
msr->msc_full_request_length = 0;
332332
free(msr->msc_full_request_buffer);
333+
msr->msc_full_request_buffer = NULL;
333334
}
334335

335336
#if defined(WITH_LUA)

0 commit comments

Comments
 (0)