Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5d4cec2f authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: fix bare destroy_session null dereference



It's legal to send a DESTROY_SESSION outside any session (as the only
operation in a compound), in which case cstate->session will be NULL;
check for that case.

While we're at it, move these checks into a separate helper function.

Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 5306293c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment