qemu-char: Fix chardev "memory" not to drop IAC characters
authorMarkus Armbruster <armbru@redhat.com>
Wed, 6 Feb 2013 20:27:21 +0000 (21:27 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 6 Feb 2013 22:35:19 +0000 (16:35 -0600)
Undocumented misfeature, get rid of it while we can.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char.c

index b0e4b41bcc1c60b3f7c12533ecaa19a3620236b0..2f59a614298f58d1d4b8acf52b395df3722937e6 100644 (file)
@@ -2678,11 +2678,6 @@ static int cirmem_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
     }
 
     for (i = 0; i < len; i++ ) {
-        /* Avoid writing the IAC information to the queue. */
-        if ((unsigned char)buf[i] == IAC) {
-            continue;
-        }
-
         d->cbuf[d->prod++ % d->size] = buf[i];
         if ((d->prod - d->cons) > d->size) {
             d->cons = d->prod - d->size;