From: Hu Tao Date: Wed, 16 Nov 2011 08:38:11 +0000 (+0800) Subject: fix a bug in remoteSerializeTypedParameters X-Git-Tag: v0.9.8-rc1~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f153501e68ea0da63fb085d35a41c5e424689946;p=thirdparty%2Flibvirt.git 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. --- diff --git a/daemon/remote.c b/daemon/remote.c index 857835e325..97c953823f 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -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;