[libvirt] [PATCH 2/4] Try harder to send RPC error message back to client

Eric Blake eblake at redhat.com
Tue Aug 17 15:31:30 UTC 2010


On 08/17/2010 09:16 AM, Daniel P. Berrange wrote:
> @@ -558,22 +559,30 @@ remoteDispatchClientCall (struct qemud_server *server,
>                     msg->bufferLength,
>                     XDR_ENCODE);
>  
> -    if (xdr_setpos(&xdr, msg->bufferOffset) == 0)
> -        goto xdr_error;
> +    if (xdr_setpos(&xdr, msg->bufferOffset) == 0) {
> +        remoteDispatchFormatError(&rerr, "%s", _("failed to change XDR reply offset"));
> +	goto xdr_error;

Why the swap to a TAB?

ACK, modulo that nit.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100817/3bd3c78a/attachment-0001.sig>


More information about the libvir-list mailing list