Revert "starter: Don't treat unsupported keywords as fatal errors just report them."
authorTobias Brunner <tobias@strongswan.org>
Tue, 12 Jun 2012 09:42:00 +0000 (11:42 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 12 Jun 2012 14:15:03 +0000 (16:15 +0200)
This reverts commit e55876a657ae9d4bbf14320e5a14f86cc5c31c7f.

src/starter/confread.c

index 0496047..f4c697d 100644 (file)
@@ -125,7 +125,7 @@ static void load_setup(starter_config_t *cfg, config_parsed_t *cfgp)
                {
                        DBG1(DBG_APP, "# unsupported keyword '%s' in config setup",
                                 kw->entry->name);
-                       cfg->non_fatal_err++;
+                       cfg->err++;
                        continue;
                }
 
@@ -442,7 +442,7 @@ static void load_conn(starter_conn_t *conn, kw_list_t *kw, starter_config_t *cfg
                {
                        DBG1(DBG_APP, "# unsupported keyword '%s' in conn '%s'",
                                 kw->entry->name, conn_name);
-                       cfg->non_fatal_err++;
+                       cfg->err++;
                        continue;
                }
 
@@ -627,7 +627,7 @@ static void load_ca(starter_ca_t *ca, kw_list_t *kw, starter_config_t *cfg)
                {
                        DBG1(DBG_APP, "# unsupported keyword '%s' in ca '%s'",
                                 kw->entry->name, ca_name);
-                       cfg->non_fatal_err++;
+                       cfg->err++;
                        continue;
                }