Commit ee963875 authored by Beniamino Galvani's avatar Beniamino Galvani

cli: fix setting private key password

Fixes: fe390556 ('cli: add property type for 802-1x certificate properties (pt3)')
parent 48ce3628
...@@ -2263,6 +2263,7 @@ _set_fcn_cert_8021x (ARGS_SET_FCN) ...@@ -2263,6 +2263,7 @@ _set_fcn_cert_8021x (ARGS_SET_FCN)
password = path + strcspn (path, " \t"); password = path + strcspn (path, " \t");
if (password[0] != '\0') { if (password[0] != '\0') {
password[0] = '\0'; password[0] = '\0';
password++;
while (nm_utils_is_separator (password[0])) while (nm_utils_is_separator (password[0]))
password++; password++;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment