From cf23bbdc2bb66c3522649eda85983c502c6bbf99 Mon Sep 17 00:00:00 2001 From: Lucien Van Elsen Date: Fri, 14 Aug 1992 08:09:43 +0000 Subject: host_not_losing): client_deregister free's client structure, so call to server_kill_clt should be called first. --- server/hostm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/hostm.c b/server/hostm.c index d6b9c60..659d199 100644 --- a/server/hostm.c +++ b/server/hostm.c @@ -260,7 +260,7 @@ hostm_flush(host, server) } else lhp = lhp->q_forw; - if ((clist = host->zh_clients)) { + if ((clist = host->zh_clients) != NULLZCLT) { for (clt = clist->q_forw; clt != clist; clt = clist->q_forw) { /* client_deregister frees this client & subscriptions & locations and remque()s the client */ @@ -476,8 +476,8 @@ host_not_losing(who) if (zdebug) syslog(LOG_DEBUG,"h_not_lose clt_dereg"); #endif - client_deregister(lhp->lh_client, lhp->lh_host, 1); server_kill_clt(lhp->lh_client); + client_deregister(lhp->lh_client, lhp->lh_host, 1); xremque(lhp); xfree(lhp); /* now that the remque adjusted the linked list, -- cgit v1.2.3