summaryrefslogtreecommitdiff
path: root/libgupnp/gupnp-control-point.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgupnp/gupnp-control-point.c')
-rw-r--r--libgupnp/gupnp-control-point.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libgupnp/gupnp-control-point.c b/libgupnp/gupnp-control-point.c
index 4bce2fe..d4b4472 100644
--- a/libgupnp/gupnp-control-point.c
+++ b/libgupnp/gupnp-control-point.c
@@ -630,7 +630,11 @@ got_description_url (GObject *source,
body_data = g_bytes_get_data (body, &length);
/* Parse response */
- xml_doc = xmlRecoverMemory (body_data, length);
+ xml_doc = xmlReadMemory (body_data,
+ length,
+ NULL,
+ NULL,
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
if (xml_doc) {
doc = gupnp_xml_doc_new (xml_doc);