diff options
| author | Michael Biebl <biebl@debian.org> | 2018-07-25 13:13:04 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-07-25 13:13:04 +0200 |
| commit | 08984bbd9d6c7c8a033c7d1466c25a34bcc21c0d (patch) | |
| tree | 53671bf0bb9d3f465b02a1bc149512a210da34a1 /src/nm-manager.c | |
| parent | 0d06e842e34adca9a743de93979a7432961257c6 (diff) | |
| parent | caf1db9d6fbc056cc6c76a24574890f6c7895f3d (diff) | |
Update upstream source from tag 'upstream/1.12.2'
Update to upstream version '1.12.2' with Debian dir 31e4999680481a4db05a3c008df492a8905a4ab3
Diffstat (limited to 'src/nm-manager.c')
| -rw-r--r-- | src/nm-manager.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c index 0fea13de..289dcf83 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -4611,21 +4611,7 @@ validate_activation_request (NMManager *self, } } - if (is_vpn && device) { - /* VPN's are treated specially. Maybe the should accept a device as well, - * however, later on during activation, we don't handle the device. - * - * Maybe we should, and maybe it makes sense to specify a device - * when activating a VPN. But for now, just error out. */ - g_set_error_literal (error, - NM_MANAGER_ERROR, - NM_MANAGER_ERROR_UNKNOWN_DEVICE, - "Cannot specify device when activating VPN"); - return NULL; - } - - nm_assert ( ( is_vpn && !device) - || (!is_vpn && NM_IS_DEVICE (device))); + nm_assert (is_vpn || NM_IS_DEVICE (device)); *out_device = device; *out_is_vpn = is_vpn; |