]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirt-qemu: Don't allow NULL cmd in virDomainQemuMonitorCommandWithFiles()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 8 Mar 2022 14:09:59 +0000 (15:09 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 8 Mar 2022 15:04:24 +0000 (16:04 +0100)
commit9583b0b7e3158d5ffd76a1d181629dba4f1cf092
treeec52db4bcd4d3fac4cb69d643595c441fd5ac30e
parentfd08bf20958908228f9fcddd784a61b3de63df7c
libvirt-qemu: Don't allow NULL cmd in virDomainQemuMonitorCommandWithFiles()

Nothing in daemon code is prepared for the command in
virDomainQemuMonitorCommandWithFiles() to be NULL. In fact, the
client side doesn't expect this either as our RPC describes the
argument as:

    remote_nonnull_string cmd;

Validate the argument in the public API implementation.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt-qemu.c