mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
pf: Fix fragment timeout
We were inconsistent about the use of time_second vs. time_uptime. Always use time_uptime so the value can be meaningfully compared. Submitted by: "Max" <maximos@als.nnov.ru> MFC after: 4 days
This commit is contained in:
parent
09b2fa7e80
commit
87900383a7
1 changed files with 1 additions and 1 deletions
|
|
@ -434,7 +434,7 @@ pf_fillup_fragment(struct pf_fragment_cmp *key, struct pf_frent *frent,
|
|||
|
||||
*(struct pf_fragment_cmp *)frag = *key;
|
||||
frag->fr_flags = 0;
|
||||
frag->fr_timeout = time_second;
|
||||
frag->fr_timeout = time_uptime;
|
||||
frag->fr_maxlen = frent->fe_len;
|
||||
TAILQ_INIT(&frag->fr_queue);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue