mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 06:15:33 -04:00
mroute: fix a sysctl vs teardown race
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
efd368784e
commit
0fd31cf690
1 changed files with 3 additions and 0 deletions
|
|
@ -2739,6 +2739,9 @@ sysctl_mfctable(SYSCTL_HANDLER_ARGS)
|
|||
return (error);
|
||||
|
||||
MRW_RLOCK();
|
||||
if (V_mfchashtbl == NULL)
|
||||
goto out_locked;
|
||||
|
||||
for (i = 0; i < mfchashsize; i++) {
|
||||
LIST_FOREACH(rt, &V_mfchashtbl[i], mfc_hash) {
|
||||
error = SYSCTL_OUT(req, rt, sizeof(struct mfc));
|
||||
|
|
|
|||
Loading…
Reference in a new issue