cli: fix setting private key password

Fixes: fe390556ab ('cli: add property type for 802-1x certificate properties (pt3)')
(cherry picked from commit ee96387578)
This commit is contained in:
Beniamino Galvani 2019-04-23 14:17:47 +02:00
parent e738479bdd
commit d8badb280c

View file

@ -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 {