clients: fix string list setter

Fixes: 5d3736ac65

https://bugzilla.redhat.com/show_bug.cgi?id=1671200
(cherry picked from commit a68b1827ec)
This commit is contained in:
Beniamino Galvani 2019-01-31 08:55:19 +01:00
parent 542e340f01
commit bc83a5035b

View file

@ -2190,7 +2190,7 @@ _get_fcn_802_1x_phase2_private_key (ARGS_GET_FCN)
strv = nm_utils_strsplit_set (value, " \t,", FALSE); \
if (strv) { \
for (i = 0; strv[i]; i++) \
set_func (NM_SETTING_802_1X (setting), strv[i++]); \
set_func (NM_SETTING_802_1X (setting), strv[i]); \
} \
return TRUE; \
}