Browse Source

[vmware] Fix length returned by guestrpc_command()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
cd29df5c08
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/arch/i386/interface/vmware/guestrpc.c

+ 1
- 0
src/arch/i386/interface/vmware/guestrpc.c View File

@@ -292,6 +292,7 @@ int guestrpc_command ( int channel, const char *command, char *reply,
292 292
 			if ( status_len ) {
293 293
 				*(status_bytes++) = ( data & 0xff );
294 294
 				status_len--;
295
+				len--;
295 296
 			} else if ( reply_len ) {
296 297
 				*(reply_bytes++) = ( data & 0xff );
297 298
 				reply_len--;

Loading…
Cancel
Save