Skip to content

utils: Check for valid data before calling rest_xml_parser_parse_from_data()

Eduardo de Barros Lima requested to merge eblima/libgovirt:master into master

In the case of HTTP errors, such as a invalid TLS certificate, the returned data is NULL, and the code in librest does not make the check, causing a segfault.

Signed-off-by: Eduardo Lima (Etrunko) etrunko@redhat.com

Merge request reports