]> git.ipfire.org Git - thirdparty/libvirt.git/commit
uml: umlConnectOpen: Check the driver pointer before accessing it
authorJulio Faracco <jcfaracco@gmail.com>
Fri, 28 Sep 2018 04:13:28 +0000 (01:13 -0300)
committerErik Skultety <eskultet@redhat.com>
Mon, 1 Oct 2018 07:13:44 +0000 (09:13 +0200)
commit125ac4c0a82161986d3c9496e2c62692d7f47e91
treed541e400d03cd249fe3f6d8f4776e6240d8ad51d
parent199eee6aae7af3d813fbe98660c7e0fa1a8ae7b7
uml: umlConnectOpen: Check the driver pointer before accessing it

The pointer related to uml_driver needs to be checked before its usage
inside the function. Some attributes of the driver are being accessed
while the pointer is NULL considering the current logic.

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/uml/uml_driver.c