rxkad: Consolidate refCount decrement 53/15153/2
authorAndrew Deason <adeason@sinenomine.net>
Wed, 12 Oct 2022 19:42:33 +0000 (14:42 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Mon, 24 Oct 2022 21:10:47 +0000 (17:10 -0400)
commitf2831d109d7a111a1dbdce33e02bcea560127206
tree4a9d120494fe76fbb78e5b039cc26517828b8dce
parent475594cfcc2b32fb16778087233759e203dfc84c
rxkad: Consolidate refCount decrement

To make code changes easier, all rxkad code that deals with
incrementing/decrementing the rx_securityClass refCount should be done
in the same place. Right now, there's only one incrementing code path,
but there are two decrement code paths that are duplicated. Change the
rxkad_DestroyConnection refCount-handling logic to just call
rxkad_Close(), since the behavior is identical.

Change-Id: Ibee79435dc62d79f0094ead818566c7f62c91898
Reviewed-on: https://gerrit.openafs.org/15153
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/rxkad/rxkad_common.c