HomeFreeBSD

nfscl: Sanity check the callback tag length

Description

nfscl: Sanity check the callback tag length

The sanity check for tag length in a callback request
was broken in two ways:

It checked for a negative value, but not a large positive
value.

It did not set taglen to -1, to indicate to the code that
it should not be used.

This patch fixes both of these issues.

PR: 260266

(cherry picked from commit d9931c25617d6625e280fda19bd9c2878e49c091)

Details

Provenance
rmacklemAuthored on Dec 9 2021, 10:15 PM
Parents
rG55a60738e7af: nfscl: Check for an error return from nfsrv_getattrbits()
Branches
Unknown
Tags
Unknown