rng-egd: offset the point when repeatedly read from the buffer
commitfbdcec5c487685b46e78f1e40a236ebf83f862fa
authorAmos Kong <akong@redhat.com>
Thu, 21 Nov 2013 08:42:51 +0000 (21 16:42 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Nov 2013 16:39:17 +0000 (21 17:39 +0100)
tree007352da9a26c69eb5abbbcbf1db8ce1a7573a56
parent60aad298cb6de52f2716b2e82e1353ea9de95fd6
rng-egd: offset the point when repeatedly read from the buffer

The buffer content might be read out more than once, currently
we just repeatedly read the first data block, buffer offset is
missing.

Cc: qemu-stable@nongnu.org
Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
backends/rng-egd.c