mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
set ipv6 prefix only if it is set
This commit is contained in:
@@ -92,8 +92,10 @@ int send_cookie_auth_reply(main_server_st* s, struct proc_st* proc,
|
||||
msg.ipv4_network = proc->config.ipv4_network;
|
||||
msg.ipv6_network = proc->config.ipv6_network;
|
||||
|
||||
msg.ipv6_prefix = proc->ipv6->prefix;
|
||||
msg.has_ipv6_prefix = 1;
|
||||
if (proc->ipv6) {
|
||||
msg.ipv6_prefix = proc->ipv6->prefix;
|
||||
msg.has_ipv6_prefix = 1;
|
||||
}
|
||||
|
||||
if (proc->interim_update_secs) {
|
||||
msg.has_interim_update_secs = 1;
|
||||
|
||||
Reference in New Issue
Block a user