summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/hostm.c4
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,