summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated/hoststated.c
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-11-15 17:02:02 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-11-15 17:02:02 +0000
commit078d3190e12948613291c79f4c84c0f6eed75e1b (patch)
tree3df5a4f8f42afeea5b985c4b4119cd660798dbc9 /usr.sbin/hoststated/hoststated.c
parentfec1cc02a9de09489cf0c4e7579cd82a2a234e6e (diff)
Do not insert proto_default inside the dynamically alloced protocol queue.
Handle it as a special case in the one place where it actually matters instead.
Diffstat (limited to 'usr.sbin/hoststated/hoststated.c')
-rw-r--r--usr.sbin/hoststated/hoststated.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/hoststated/hoststated.c b/usr.sbin/hoststated/hoststated.c
index 12a3a5c32c0..523c404f9fe 100644
--- a/usr.sbin/hoststated/hoststated.c
+++ b/usr.sbin/hoststated/hoststated.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hoststated.c,v 1.50 2007/11/14 11:01:52 pyr Exp $ */
+/* $OpenBSD: hoststated.c,v 1.51 2007/11/15 17:02:01 pyr Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -498,8 +498,6 @@ purge_config(struct hoststated *env, u_int8_t what)
if (what & PURGE_PROTOS && env->protos != NULL) {
while ((proto = TAILQ_FIRST(env->protos)) != NULL) {
TAILQ_REMOVE(env->protos, proto, entry);
- if (strcmp(proto->name, "default") == 0)
- continue;
while ((pnode = RB_ROOT(&proto->request_tree))
!= NULL) {
RB_REMOVE(proto_tree, &proto->request_tree,