override the default ipv6_prefix only if ipv6_prefix is set

This commit is contained in:
Nikos Mavrogiannopoulos
2014-12-26 20:23:12 +02:00
parent 80459cfbd5
commit b38a1bb39a

View File

@@ -557,7 +557,9 @@ static int recv_cookie_auth_reply(worker_st * ws)
talloc_strdup(ws, msg->ipv6_network);
}
ws->config->network.ipv6_prefix = msg->ipv6_prefix;
if (msg->has_ipv6_prefix) {
ws->config->network.ipv6_prefix = msg->ipv6_prefix;
}
if (msg->has_rx_per_sec)
ws->config->rx_per_sec = msg->rx_per_sec;