device: don't assert the presence of old vpn configurations
authorBeniamino Galvani <bgalvani@redhat.com>
Mon, 7 Mar 2016 17:14:30 +0000 (18:14 +0100)
committerBeniamino Galvani <bgalvani@redhat.com>
Mon, 7 Mar 2016 17:22:12 +0000 (18:22 +0100)
commit639f2d4b05aa1704618a22baa9eababfe6bd557d
treee6ddb04cf04ff65c2ef776b3b706a94b217bc465
parentb2b73809c5e2e9422b4e19716284a8b969832a3e
device: don't assert the presence of old vpn configurations

When a VPN connection is active and the parent device becomes
unmanaged (due to device removal or system entering sleep), all
configurations are removed from the interface and the device is taken
down. After that, the VPN is disconnected and tries to remove the old
VPN configuration from device, causing the following assertion to
fail:

  _replace_vpn_config_in_list: assertion '!old' failed

Remove the assertion as @old can be missing for valid reasons.
src/devices/nm-device.c