mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
util: Avoid null pointer dereference when setting QoS on OVS
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
a5bbe1a8b6
commit
185b06ba35
@ -759,7 +759,7 @@ virNetDevOpenvswitchInterfaceSetQos(const char *ifname,
|
||||
}
|
||||
virCommandAddArgList(cmd, vmid_ex_id, ifname_ex_id, NULL);
|
||||
if (virCommandRun(cmd, NULL) < 0) {
|
||||
if (*queue_uuid) {
|
||||
if (queue_uuid && *queue_uuid) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("Unable to set queue configuration on port %s"), ifname);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user