clients: fix string list setter

Fixes: 5d3736ac65

https://bugzilla.redhat.com/show_bug.cgi?id=1671200
This commit is contained in:
Beniamino Galvani 2019-01-31 08:55:19 +01:00
parent 5ae4245be2
commit a68b1827ec

View file

@ -2191,7 +2191,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; \
}