From d8badb280ce2acfcd0ae6fb3d8d133cae6326b7c Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 23 Apr 2019 14:17:47 +0200 Subject: [PATCH] cli: fix setting private key password Fixes: fe390556abfe ('cli: add property type for 802-1x certificate properties (pt3)') (cherry picked from commit ee96387578ca5428b9836dda382f9e6d64d5a7a8) --- clients/common/nm-meta-setting-desc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c index 698ded869e..b21ce37cf0 100644 --- a/clients/common/nm-meta-setting-desc.c +++ b/clients/common/nm-meta-setting-desc.c @@ -2276,6 +2276,7 @@ _set_fcn_cert_8021x (ARGS_SET_FCN) password = path + strcspn (path, " \t"); if (password[0] != '\0') { password[0] = '\0'; + password++; while (nm_utils_is_separator (password[0])) password++; } else {