From 30da82e4b05ad7a6ec21d199bd63955f7db3dc95 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Ritschard Date: Tue, 13 Nov 2007 10:35:22 +0000 Subject: relays are dynamic now. --- usr.sbin/relayd/relayd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/relayd') diff --git a/usr.sbin/relayd/relayd.c b/usr.sbin/relayd/relayd.c index 6bba36e5200..a5b35ee1aec 100644 --- a/usr.sbin/relayd/relayd.c +++ b/usr.sbin/relayd/relayd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relayd.c,v 1.47 2007/11/04 22:09:02 reyk Exp $ */ +/* $OpenBSD: relayd.c,v 1.48 2007/11/13 10:35:21 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard @@ -473,7 +473,7 @@ purge_config(struct hoststated *env, u_int8_t what) env->services = NULL; } - if (what & PURGE_RELAYS) { + if (what & PURGE_RELAYS && env->relays != NULL) { while ((rly = TAILQ_FIRST(env->relays)) != NULL) { TAILQ_REMOVE(env->relays, rly, entry); while ((sess = SPLAY_ROOT(&rly->sessions)) != NULL) { -- cgit v1.2.3