summaryrefslogtreecommitdiff
path: root/src/hostmask.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostmask.c')
-rw-r--r--src/hostmask.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hostmask.c b/src/hostmask.c
index c033e2d..e6ec09a 100644
--- a/src/hostmask.c
+++ b/src/hostmask.c
@@ -717,7 +717,7 @@ delete_one_address_conf(const char *address, struct MaskItem *conf)
{
dlinkDelete(&arec->node, &atable[hv]);
- if (!conf->clients)
+ if (!conf->ref_count)
conf_free(conf);
MyFree(arec);
@@ -754,7 +754,7 @@ clear_out_address_conf(void)
dlinkDelete(&arec->node, &atable[i]);
- if (!arec->conf->clients)
+ if (!arec->conf->ref_count)
conf_free(arec->conf);
MyFree(arec);
}
@@ -780,6 +780,7 @@ hostmask_send_expiration(struct AddressRec *arec)
case CONF_GLINE:
ban_type = 'G';
break;
+ default: break;
}
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
@@ -814,6 +815,7 @@ hostmask_expire_temporary(void)
conf_free(arec->conf);
MyFree(arec);
break;
+ default: break;
}
}
}