mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:25:18 +00:00
Driver: Fix traffic flushing.
This commit is contained in:
parent
928368e6e2
commit
a54f6e0a56
@ -113,7 +113,7 @@ fort_stat_proc_exclude (PFORT_STAT stat, PFORT_STAT_PROC ex_proc,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
fort_stat_proc_free (PFORT_STAT stat, PFORT_STAT_PROC proc, UINT16 proc_index,
|
fort_stat_proc_free (PFORT_STAT stat, PFORT_STAT_PROC proc, UINT16 proc_index,
|
||||||
PFORT_STAT_PROC prev_proc)
|
PFORT_STAT_PROC prev_proc /* = NULL */)
|
||||||
{
|
{
|
||||||
/* Exclude from the active chain */
|
/* Exclude from the active chain */
|
||||||
if (prev_proc == NULL) {
|
if (prev_proc == NULL) {
|
||||||
@ -512,8 +512,7 @@ fort_stat_dpc_traf_flush (PFORT_STAT stat, PCHAR out)
|
|||||||
|
|
||||||
for (UINT16 i = 0; proc_index != FORT_PROC_BAD_INDEX; ++i) {
|
for (UINT16 i = 0; proc_index != FORT_PROC_BAD_INDEX; ++i) {
|
||||||
PFORT_STAT_PROC proc = &stat->procs[proc_index];
|
PFORT_STAT_PROC proc = &stat->procs[proc_index];
|
||||||
|
const UINT16 next_index = proc->next_index;
|
||||||
proc_index = proc->next_index;
|
|
||||||
|
|
||||||
/* Write bytes */
|
/* Write bytes */
|
||||||
*out_traf++ = proc->traf;
|
*out_traf++ = proc->traf;
|
||||||
@ -529,6 +528,8 @@ fort_stat_dpc_traf_flush (PFORT_STAT stat, PCHAR out)
|
|||||||
|
|
||||||
prev_proc = proc;
|
prev_proc = proc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
proc_index = next_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
stat->is_dirty = FALSE;
|
stat->is_dirty = FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user