conntrackd UDP IPv6 destination address not usable (Bug 1378)
PATCH 1/1 conntrackd UDP IPv6 destination address not usable (Bug 1378)
Hi,
as reported in https://bugzilla.netfilter.org/show_bug.cgi?id=1378,
conntrackd refuses to start with a vaild IPv6_Destination_Address, reporting "inet_pton(): IPv6 unsupported" due to a forgotten handling of err>0 (i.e. success). This patch fixes the issue:
Signed-off-by Jan-Martin Raemer <[email protected]>
src/read_config_yy.y +1 -1
@@ -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); }
Best regards,
Jan-Martin
Signature · 6 lines
Dr. Jan-Martin Rämer Systemtechnik Zentrum für Hochschul-IT Rheinland-Pfalz Moselweißer Straße 4, 56073 Koblenz Telefon +49(0)261 9528-906 [email protected]
Quoted 6 lines · Jan-Martin Raemer
Hi,
as reported in https://bugzilla.netfilter.org/show_bug.cgi?id=1378,
conntrackd refuses to start with a vaildIPv6_Destination_Address, reporting "inet_pton(): IPv6 unsupported" due to a forgotten handling of err>0 (i.e. success). This patch fixes the issue:
Applied, thanks.