Remember and close the kadmin socket we opened
authorGreg Hudson <ghudson@mit.edu>
Fri, 26 Aug 2011 17:56:44 +0000 (17:56 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 26 Aug 2011 17:56:44 +0000 (17:56 +0000)
commitde196505008b476133ad5890963610833f1a089d
tree661f9bcdbcce3cb7f40c918282598ffd96ba79d8
parentf636d794ed9bfcb3541793834f0b1a416cc7d32a
Remember and close the kadmin socket we opened

Prior to ticket #6746, the RPC library opened the kadmin socket and
took responsibility for closing.  When we added IPv6 support, the
calling code became the owner of the socket but wasn't closing it,
resulting in a file descriptor leak.

ticket: 6949

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25115 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/kadm5/clnt/client_init.c
src/lib/kadm5/clnt/client_internal.h