diff options
author | Jan-Martin Raemer <raemer@zit-rlp.de> | 2019-11-07 10:35:13 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-11-07 10:37:17 +0100 |
commit | ab0dcb580324dc8d9296443bc32ed3364642db1e (patch) | |
tree | d340cee2db31724cb44f2993d6c94b5c84863de7 | |
parent | 8a4e901eb9418a47ff443c26ac13b85b91da2520 (diff) |
conntrackd: UDP IPv6 destination address not usable (Bug 1378)
As reported in https://bugzilla.netfilter.org/show_bug.cgi?id=1378,
conntrackd refuses to start with a valid IPv6_Destination_Address,
reporting "inet_pton(): IPv6 unsupported" due to a forgotten handling of
err > 0 (i.e. success). This patch fixes the issue.
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1378
Signed-off-by: Jan-Martin Raemer <raemer@zit-rlp.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | src/read_config_yy.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/read_config_yy.y b/src/read_config_yy.y index a4aa7f5..31109c4 100644 --- a/src/read_config_yy.y +++ b/src/read_config_yy.y @@ -467,7 +467,7 @@ udp_option : T_IPV6_DEST_ADDR T_IP dlog(LOG_WARNING, "%s is not a valid IPv6 address", $2); free($2); break; - } else { + } else if (err < 0) { dlog(LOG_ERR, "inet_pton(): IPv6 unsupported!"); exit(EXIT_FAILURE); } |