Page MenuHomeFreeBSD

sbin/sysctl: Fix CTLFLAG_SKIP for adjacent nodes
ClosedPublic

Authored by freqlabs on Jan 26 2021, 8:14 PM.

Details

Summary

The OID is saved when we encounter CTLFLAG_SKIP so that descendants can be skipped as well. We then must not update the skip OID until we are out of the node. This was achieved by resetting the skip OID once the prefix no longer matches, but the case where the OID reset on is also CTLFLAG_SKIP was not accounted for.

Reported by: mav
Sponsored by: iXsystems, Inc.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.