]> xenbits.xensource.com Git - libvirt.git/commit
virsh: don't crash if shutdown --mode not provided
authorEric Blake <eblake@redhat.com>
Fri, 30 Nov 2012 21:48:24 +0000 (14:48 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 30 Nov 2012 21:56:30 +0000 (14:56 -0700)
commit72437526946febbe87aab585879db859946c00e9
treed184182a96cadce8e9bd3dde4470de61b7cfd1a4
parent5a608c3dee1904700b13a73578f6bf3ec0af0220
virsh: don't crash if shutdown --mode not provided

virStringSplit requires a non-NULL input, but commit cef78ed forgot
to follow the rule.

* tools/virsh-domain.c (cmdReboot, cmdShutdown): Avoid NULL deref.
tools/virsh-domain.c