[gupnp/gupnp-1.0] service: Fix adding call-back to list
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/gupnp-1.0] service: Fix adding call-back to list
- Date: Sat, 20 Jun 2020 18:14:56 +0000 (UTC)
commit 4dc8451c16e25c941a587afd8f2d01edfe40f090
Author: Jens Georg <mail jensge org>
Date: Wed Jun 17 15:31:31 2020 +0200
service: Fix adding call-back to list
libgupnp/gupnp-service.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libgupnp/gupnp-service.c b/libgupnp/gupnp-service.c
index 001cccc..e15b300 100644
--- a/libgupnp/gupnp-service.c
+++ b/libgupnp/gupnp-service.c
@@ -1239,7 +1239,9 @@ subscribe (GUPnPService *service,
// Also one part of CVE-2020-12695 mitigation - limit URI length
// UPnP does not impose any restrictions here
if (strlen (start) <= 256) {
- add_subscription_callback (context, data->callbacks, start);
+ data->callbacks = add_subscription_callback (context,
+ data->callbacks,
+ start);
} else {
g_warning ("Subscription URI exceeds recommended length "
"of 256 bytes, skipping");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]