]> xenbits.xensource.com Git - xen.git/commit
libxenctrl: Fix xc_interface_close() crash if it gets NULL as an argument
authorDaniel Kiper <daniel.kiper@oracle.com>
Mon, 2 Dec 2013 19:13:03 +0000 (20:13 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 4 Dec 2013 14:33:00 +0000 (14:33 +0000)
commit2cebe22e6924439535cbf4a9f82a7d9d30c8f9c7
tree3e5a89f00443212fd3ff9f4d40aed1c0b057c552
parent17d34efd6751f93bec943ccc8f5b8c56c8fbb483
libxenctrl: Fix xc_interface_close() crash if it gets NULL as an argument

xc_interface_close() crashes if it gets NULL as an argument. However,
it just calls xc_interface_close_common() which is called by many
others functions. It means that they are also vulnerable. So fix above
mentioned issue by adding NULL check in xc_interface_close_common().
This way we fix similar issue in other functions which calls
xc_interface_close_common() too.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_private.c