diff options
author | 2010-06-30 21:37:30 +0000 | |
---|---|---|
committer | 2010-06-30 21:37:30 +0000 | |
commit | d38fa84352ae49e0fa03d9dfb52fdb2910b25e24 (patch) | |
tree | 0472a80e8358fd6f0d990df563e9961e88d57f3a | |
parent | Add a test for route labels, re PR6416. ok phessler@ (diff) | |
download | wireguard-openbsd-d38fa84352ae49e0fa03d9dfb52fdb2910b25e24.tar.xz wireguard-openbsd-d38fa84352ae49e0fa03d9dfb52fdb2910b25e24.zip |
Don't compact and reindex referral namespaces.
-rw-r--r-- | usr.sbin/ldapctl/ldapctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldapctl/ldapctl.c b/usr.sbin/ldapctl/ldapctl.c index 98d072a5ce0..f6af96a52fd 100644 --- a/usr.sbin/ldapctl/ldapctl.c +++ b/usr.sbin/ldapctl/ldapctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldapctl.c,v 1.3 2010/06/23 16:22:29 jmc Exp $ */ +/* $OpenBSD: ldapctl.c,v 1.4 2010/06/30 21:37:30 martinh Exp $ */ /* * Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se> @@ -124,7 +124,7 @@ compact_namespaces(void) struct namespace *ns; TAILQ_FOREACH(ns, &conf->namespaces, next) - if (compact_namespace(ns) != 0) + if (SLIST_EMPTY(&ns->referrals) && compact_namespace(ns) != 0) return -1; return 0; @@ -217,7 +217,7 @@ index_namespaces(void) struct namespace *ns; TAILQ_FOREACH(ns, &conf->namespaces, next) - if (index_namespace(ns) != 0) + if (SLIST_EMPTY(&ns->referrals) && index_namespace(ns) != 0) return -1; return 0; |