Page MenuHomeFreeBSD

kgss: remove unnecessary CURVNET_SET() and kgss_gssd_handle checks
ClosedPublic

Authored by glebius on Apr 21 2026, 5:55 PM.
Tags
None
Referenced Files
F169396244: D56561.id176023.diff
Tue, Sep 1, 10:17 AM
F169354114: D56561.id176023.diff
Tue, Sep 1, 7:20 AM
Unknown Object (File)
Mon, Aug 31, 8:45 AM
Unknown Object (File)
Mon, Aug 31, 7:51 AM
Unknown Object (File)
Sun, Aug 30, 2:37 PM
Unknown Object (File)
Sun, Aug 30, 6:57 AM
Unknown Object (File)
Sat, Aug 29, 8:50 AM
Unknown Object (File)
Sat, Aug 29, 8:03 AM
Subscribers

Details

Summary

These RPC methods correctly acquire the kgss_gssd_handle later with call
to kgss_gssd_client().

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks ok to me. If kgss_gssd_handle can never
be NULL, removing the checks for non-NULL
might simplify the code a bit?

sys/kgssapi/gss_release_cred.c
57

As I asked in the other review. Does this check
make any sense now? (ie. Can it ever be NULL?)

This revision is now accepted and ready to land.Apr 21 2026, 10:17 PM