]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Fix bug which will cause libvirtd crash
authorOsier Yang <jyang@redhat.com>
Mon, 6 Dec 2010 09:41:10 +0000 (17:41 +0800)
committerEric Blake <eblake@redhat.com>
Mon, 6 Dec 2010 16:34:54 +0000 (09:34 -0700)
commit85ccf42cd0a8c956230312d6f69dc56666b99871
tree2ff54bd455755992c4c253bcbfe6758a86a09748
parent58d0f4d737d4de688c0a473ef4a073f07d869a09
util: Fix bug which will cause libvirtd crash

"virCommandRun": if "cmd->outbuf" or "cmd->errbuf" is NULL,
libvirtd will be crashed when trying to start a qemu domain
(which invokes "virCommandRun"), it caused by we try to use
"*cmd->outbuf" and "*cmd->errbuf" regardless of cmd->outbuf
or cmd->errbuf is NULL.

* src/util/command.c (virCommandRun)
src/util/command.c