From b38a1bb39a5aa1984aee9f133fb42a44493b2e7d Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 26 Dec 2014 20:23:12 +0200 Subject: [PATCH] override the default ipv6_prefix only if ipv6_prefix is set --- src/worker-auth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/worker-auth.c b/src/worker-auth.c index e8d01d22..210580c4 100644 --- a/src/worker-auth.c +++ b/src/worker-auth.c @@ -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;