mirror of https://gitee.com/openkylin/libvirt.git
qemu: agent: set ifname to NULL after freeing
CVE-2020-25637
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Fixes: 0977b8aa07
Reviewed-by: Mauro Matteo Cascella <mcascell@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
e4116eaa44
commit
a63b48c5ec
|
@ -2166,6 +2166,7 @@ qemuAgentGetInterfaces(qemuAgentPtr agent,
|
|||
|
||||
/* Has to be freed for each interface. */
|
||||
g_strfreev(ifname);
|
||||
ifname = NULL;
|
||||
|
||||
/* as well as IP address which - moreover -
|
||||
* can be presented multiple times */
|
||||
|
|
Loading…
Reference in New Issue