diff options
author | Lucien Van Elsen <lwvanels@mit.edu> | 1992-08-14 08:09:43 +0000 |
---|---|---|
committer | Lucien Van Elsen <lwvanels@mit.edu> | 1992-08-14 08:09:43 +0000 |
commit | cf23bbdc2bb66c3522649eda85983c502c6bbf99 (patch) | |
tree | 7e23c27d5f52cd3ffa77fd75615685c1814eb993 /server | |
parent | 4d4a47e81f6fda170974ce8a0f7d3333fe4c1b61 (diff) |
host_not_losing): client_deregister free's client
structure, so call to server_kill_clt should be called first.
Diffstat (limited to 'server')
-rw-r--r-- | server/hostm.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |