Coverity:
CID 739629 (#1 of 1): Logically dead code (DEADCODE)
Execution cannot reach this expression ""auto"" inside statement
"v4 = (autoV4 ? "auto" : "s");".
CID 739630 (#1 of 1): Logically dead code (DEADCODE)
Execution cannot reach this expression ""auto"" inside statement
"v6 = (autoV6 ? "auto" : "s");".
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
}
if (gw == olsr_get_inet_gateway(false)) {
}
if (gw == olsr_get_inet_gateway(false)) {
- v4 = autoV4 ? "auto" : "s";
} else if (gw->ipv4 && (olsr_cnf->ip_version == AF_INET || olsr_cnf->use_niit)
&& (olsr_cnf->smart_gw_allow_nat || !gw->ipv4nat)) {
v4 = "u";
}
if (gw == olsr_get_inet_gateway(true)) {
} else if (gw->ipv4 && (olsr_cnf->ip_version == AF_INET || olsr_cnf->use_niit)
&& (olsr_cnf->smart_gw_allow_nat || !gw->ipv4nat)) {
v4 = "u";
}
if (gw == olsr_get_inet_gateway(true)) {
- v6 = autoV6 ? "auto" : "s";
} else if (gw->ipv6 && olsr_cnf->ip_version == AF_INET6) {
v6 = "u";
}
} else if (gw->ipv6 && olsr_cnf->ip_version == AF_INET6) {
v6 = "u";
}