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:
parent
a38710bd65
commit
f153501e68
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user