From: Paul Park Date: Wed, 9 Aug 1995 21:25:56 +0000 (+0000) Subject: Network slave bookkeeping fixup X-Git-Tag: krb5-1.0-beta6~1343 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fefcbb90207eb01901429d3e90be7e4000384e61;p=krb5.git Network slave bookkeeping fixup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6488 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/v5server/srv_net.c b/src/kadmin/v5server/srv_net.c index 29c421a0a..1fa3e507e 100644 --- a/src/kadmin/v5server/srv_net.c +++ b/src/kadmin/v5server/srv_net.c @@ -420,7 +420,7 @@ net_dispatch_client(kcontext, listen_sock, conn_sock, client_addr) &slent->sl_local_addr, &slent->sl_remote_addr); sl1 = net_find_slave(slent->sl_id); - if (!sl1) + if (sl1) net_free_slave_entry(sl1); DPRINT(DEBUG_SPROC, net_debug_level, ("| (%d) returned with %d\n", getpid(), kret)); @@ -683,8 +683,10 @@ net_finish(kcontext, debug_level) int debug_level; { DPRINT(DEBUG_CALLS, net_debug_level, ("* net_finish()\n")); - if (net_max_slaves) + if (net_max_slaves) { + net_max_slaves = 0; free(net_slave_table); + } if (net_listen_socket >= 0) close(net_listen_socket); if (net_service_princ_init)