Fix default policy rule priority
authorHenning Rogge <hrogge@googlemail.com>
Wed, 21 Sep 2011 18:57:32 +0000 (20:57 +0200)
committerHenning Rogge <hrogge@googlemail.com>
Wed, 21 Sep 2011 18:57:32 +0000 (20:57 +0200)
src/cfgparser/olsrd_conf.c

index c445f93..95690e7 100644 (file)
@@ -261,7 +261,7 @@ static int olsrd_sanity_check_rtpolicy(struct olsrd_config *cnf) {
     }
     else if (cnf->rt_table_pri == DEF_RT_AUTO) {
       /* choose default */
-      olsr_cnf->rt_table_pri = 0;
+      olsr_cnf->rt_table_pri = DEF_RT_NONE;
       fprintf(stderr, "No policy rule for rt_table_pri\n");
     }