]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[vmware] Fix length returned by guestrpc_command()
authorMichael Brown <mcb30@ipxe.org>
Thu, 1 Mar 2012 14:20:32 +0000 (14:20 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 1 Mar 2012 14:20:32 +0000 (14:20 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/interface/vmware/guestrpc.c

index 72860e74568e7d1a26d86481491cd6579c466ce7..a19e5bff0be8000020d375afcae47e9d150188a5 100644 (file)
@@ -292,6 +292,7 @@ int guestrpc_command ( int channel, const char *command, char *reply,
                        if ( status_len ) {
                                *(status_bytes++) = ( data & 0xff );
                                status_len--;
+                               len--;
                        } else if ( reply_len ) {
                                *(reply_bytes++) = ( data & 0xff );
                                reply_len--;