1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

fix a bug in remoteSerializeTypedParameters

This is a fatal typo believed to be very likely to happen when using
both i and j at the same time for indexing.
This commit is contained in:
Hu Tao 2011-11-16 16:38:11 +08:00 committed by Eric Blake
parent a38710bd65
commit f153501e68

View File

@ -710,7 +710,7 @@ remoteSerializeTypedParameters(virTypedParameterPtr params,
goto cleanup;
}
val[j].value.type = params[i].type;
switch (params[j].type) {
switch (params[i].type) {
case VIR_TYPED_PARAM_INT:
val[j].value.remote_typed_param_value_u.i = params[i].value.i;
break;