Merge pull request #11 from Druco/hotfix/ip6_crash

Fix crash if IP6 address is specified.
master networkmanager-wireguard-0.0.2
Max 2018-07-01 19:01:44 +02:00 committed by GitHub
commit f2689562b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ set_config(NMVpnServicePlugin *plugin, NMConnection *connection)
if(setting){ if(setting){
val = ip6_to_gvariant(setting); val = ip6_to_gvariant(setting);
if(val){ if(val){
g_variant_builder_add(&ip6builder, "{sv}", NM_VPN_PLUGIN_IP6_CONFIG_ADDRESS, setting); g_variant_builder_add(&ip6builder, "{sv}", NM_VPN_PLUGIN_IP6_CONFIG_ADDRESS, val);
has_ip6 = TRUE; has_ip6 = TRUE;
} }
} }