Fix a segfault that happened when a client read from the vchan

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #4 from jonludlam/fix-segfault

Fix a segfault that happened when a client read from the vchan