]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Fix error reporting in stream creation code
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 14 May 2011 15:46:00 +0000 (17:46 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 17 May 2011 12:54:54 +0000 (14:54 +0200)
commit5b77f1d5dc1808490e0e797256dca9bed4ee1445
tree6643389e50cf48434289d4cbaf256aa4f7492862
parent55cb8f5baa04c0315a6b35c1b43fb924943f4580
Fix error reporting in stream creation code

virStreamNew needs to dispatch the error that virGetStream reports
on failure.

remoteCreateClientStream can fail due to virStreamNew or due to
VIR_ALLOC. Report OOM error for VIR_ALLOC failure to report errors
in all error cases.

Remove OOM error reporting from remoteCreateClientStream callers.
daemon/remote.c
daemon/stream.c
src/libvirt.c