]> mj.ucw.cz Git - libucw.git/commitdiff
CF_LOOKUP lists must end with NULL.
authorMartin Mares <mj@ucw.cz>
Tue, 25 Apr 2006 22:06:50 +0000 (00:06 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 25 Apr 2006 22:06:50 +0000 (00:06 +0200)
lib/ipaccess.c

index f9cda623ca45ff2efeaa1ec04a5e99dc60afca9a..910715e782245b534be90daf9e7e885cb1948013 100644 (file)
@@ -61,7 +61,7 @@ static struct cf_user_type addrmask_type = {
 struct cf_section ipaccess_cf = {
   CF_TYPE(struct ipaccess_entry),
   CF_ITEMS {
-    CF_LOOKUP("Mode", PTR_TO(struct ipaccess_entry, allow), ((char*[]) { "deny", "allow" })),
+    CF_LOOKUP("Mode", PTR_TO(struct ipaccess_entry, allow), ((char*[]) { "deny", "allow", NULL })),
     CF_USER("IP", PTR_TO(struct ipaccess_entry, addr), &addrmask_type),
     CF_END
   }