summaryrefslogtreecommitdiff
path: root/libgupnp/gupnp-service-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgupnp/gupnp-service-info.c')
-rw-r--r--libgupnp/gupnp-service-info.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libgupnp/gupnp-service-info.c b/libgupnp/gupnp-service-info.c
index bee6c9c..5fb499d 100644
--- a/libgupnp/gupnp-service-info.c
+++ b/libgupnp/gupnp-service-info.c
@@ -564,7 +564,11 @@ get_scpd_document_finished (GObject *source,
gsize length;
gconstpointer data = g_bytes_get_data (bytes, &length);
- scpd = xmlRecoverMemory (data, length);
+ scpd = xmlReadMemory (data,
+ length,
+ NULL,
+ NULL,
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
if (scpd == NULL) {
g_task_return_new_error (task,
GUPNP_SERVER_ERROR,