From 4ddee9e2555817bd94521677e808caed665c3393 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Tue, 15 Jan 2008 12:59:27 +0000 Subject: Max Kellermann : yacc generates a function with a return value, and the conntrackd code uses "return;" to ignore a value. this is not legal. convert all of these to "break;" which might be what the author intended to do. --- src/read_config_yy.y | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/read_config_yy.y') diff --git a/src/read_config_yy.y b/src/read_config_yy.y index bbc5115..be484fe 100644 --- a/src/read_config_yy.y +++ b/src/read_config_yy.y @@ -121,7 +121,7 @@ syslog_facility : T_SYSLOG T_STRING else { fprintf(stderr, "'%s' is not a known syslog facility, " "ignoring.\n", $2); - return; + break; } if (conf.stats.syslog_facility != -1 && @@ -187,7 +187,7 @@ ignore_traffic_option : T_IPV4_ADDR T_IP if (!family) { fprintf(stderr, "%s is not a valid IP, ignoring", $2); - return; + break; } if (!STATE(ignore_pool)) { @@ -216,14 +216,14 @@ multicast_option : T_IPV4_ADDR T_IP { if (!inet_aton($2, &conf.mcast.in)) { fprintf(stderr, "%s is not a valid IPv4 address\n"); - return; + break; } if (conf.mcast.ipproto == AF_INET6) { fprintf(stderr, "Your multicast address is IPv4 but " "is binded to an IPv6 interface? Surely " "this is not what you want\n"); - return; + break; } conf.mcast.ipproto = AF_INET; @@ -240,7 +240,7 @@ multicast_option : T_IPV6_ADDR T_IP fprintf(stderr, "Your multicast address is IPv6 but " "is binded to an IPv4 interface? Surely " "this is not what you want\n"); - return; + break; } conf.mcast.ipproto = AF_INET6; @@ -250,14 +250,14 @@ multicast_option : T_IPV4_IFACE T_IP { if (!inet_aton($2, &conf.mcast.ifa)) { fprintf(stderr, "%s is not a valid IPv4 address\n"); - return; + break; } if (conf.mcast.ipproto == AF_INET6) { fprintf(stderr, "Your multicast interface is IPv4 but " "is binded to an IPv6 interface? Surely " "this is not what you want\n"); - return; + break; } conf.mcast.ipproto = AF_INET; @@ -274,7 +274,7 @@ multicast_option : T_IPV6_IFACE T_IP fprintf(stderr, "Your multicast interface is IPv6 but " "is binded to an IPv4 interface? Surely " "this is not what you want\n"); - return; + break; } conf.mcast.ipproto = AF_INET6; @@ -630,7 +630,7 @@ stat_syslog_facility : T_SYSLOG T_STRING else { fprintf(stderr, "'%s' is not a known syslog facility, " "ignoring.\n", $2); - return; + break; } if (conf.syslog_facility != -1 && -- cgit v1.2.3