]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
start modules at 1, not 0
authorAlan T. DeKok <aland@freeradius.org>
Fri, 19 Mar 2021 12:37:14 +0000 (08:37 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Mar 2021 15:04:05 +0000 (16:04 +0100)
so that when we create fake modules for virtual s

src/lib/server/module.c

index 5f6a68c0c4822d6f20ceefd3925b58bbe2b4aad6..f548211bfa445346243bc61102d19fec72a6d27e 100644 (file)
@@ -37,7 +37,7 @@ RCSID("$Id$")
 #include <freeradius-devel/unlang/base.h>
 
 static TALLOC_CTX *instance_ctx = NULL;
-static size_t instance_num = 0;
+static size_t instance_num = 1;
 
 /*
  *     For simplicity, this is just array[instance_num].  Once we