summary refs log tree commit diff
path: root/clients/cli
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2020-02-19 23:31:24 +0100
committerMichael Biebl <biebl@debian.org>2020-02-19 23:31:24 +0100
commite536d40eaea5dcdc0743b0a5e8e17faa46608a50 (patch)
tree0749832d8655215dac973866b4e724f3aea35448 /clients/cli
parentf3c6d0765dff885e168b94f28e06ecc640315a74 (diff)
New upstream version 1.22.8 upstream/1.22.8
Diffstat (limited to 'clients/cli')
-rw-r--r--clients/cli/connections.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/clients/cli/connections.c b/clients/cli/connections.c
index a77c2482..e13ae9ac 100644
--- a/clients/cli/connections.c
+++ b/clients/cli/connections.c
@@ -4252,18 +4252,10 @@ set_connection_type (NmCli *nmc, NMConnection *con, const OptionInfo *option, co
 static gboolean
 set_connection_iface (NmCli *nmc, NMConnection *con, const OptionInfo *option, const char *value, GError **error)
 {
-	GError *tmp_error = NULL;
-
 	if (value) {
 		/* Special value of '*' means no specific interface name */
 		if (strcmp (value, "*") == 0)
 			value = NULL;
-		else if (!nm_utils_is_valid_iface_name (value, &tmp_error)) {
-			g_set_error (error, NMCLI_ERROR, NMC_RESULT_ERROR_USER_INPUT,
-			             _("Error: '%s': %s"), value, tmp_error->message);
-			g_error_free (tmp_error);
-			return FALSE;
-		}
 	}
 
 	return set_property (nmc->client,