Skip to content

Commit

Permalink
Fix potential use after free
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Aug 25, 2024
1 parent 6409763 commit 71a2dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nfdump/nfdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ __attribute__((noreturn)) static void *prepareThread(void *arg) {
}

dataHandle->recordCnt = recordCnt;
queue_push(prepareQueue, (void *)dataHandle);
recordCnt += (uint64_t)dataHandle->dataBlock->NumRecords;
queue_push(prepareQueue, (void *)dataHandle);
dataHandle = NULL;
done = abortProcessing;
#ifdef DEVEL
Expand Down

0 comments on commit 71a2dd2

Please sign in to comment.