Fix crash if IP6 address is specified.

pull/11/head
Druco 2018-06-30 16:55:47 -07:00
parent fc454a8101
commit a4d7a10553
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ set_config(NMVpnServicePlugin *plugin, NMConnection *connection)
if(setting){
val = ip6_to_gvariant(setting);
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;
}
}