libxc: Prevent NULL pointer dereference in stdiostream_vmessage()
authorJennifer Herbert <Jennifer.Herbert@citrix.com>
Tue, 7 Jul 2015 16:38:59 +0000 (16:38 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 8 Jul 2015 09:51:56 +0000 (10:51 +0100)
commit9cf879cebac7577b5a4986155bae134f31cb91a0
tree60b3ea3a8acdc2007047d81f85fb60c32eb89925
parentdd84604f35bd3855c57146eb8fe53924c10d3963
libxc: Prevent NULL pointer dereference in stdiostream_vmessage()

Unlikely that it may seem localtime_r could fail, which would result in a
null pointer dereference.  In this case, it shoud log the errno, (instead of
the date/time), and and continue its logging, as this is still useful.

Signed-off-by: Jennifer Herbert <jennifer.herbert@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xtl_logger_stdio.c