[gupnp] service: More stlye fixes
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] service: More stlye fixes
- Date: Wed, 17 Jun 2020 13:40:27 +0000 (UTC)
commit 3c9ca007137bff56aa90da57ee409b8e203d6a54
Author: Jens Georg <mail jensge org>
Date: Wed Jun 17 15:31:09 2020 +0200
service: More stlye fixes
libgupnp/gupnp-service.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libgupnp/gupnp-service.c b/libgupnp/gupnp-service.c
index 812f548..ed025af 100644
--- a/libgupnp/gupnp-service.c
+++ b/libgupnp/gupnp-service.c
@@ -1196,17 +1196,18 @@ add_subscription_callback (GUPnPContext *context,
const char *host = NULL;
local_uri = gupnp_context_rewrite_uri_to_uri (context, callback);
- if (local_uri == NULL)
- return list;
+ if (local_uri == NULL) {
+ return list;
+ }
host = soup_uri_get_host (local_uri);
// CVE-2020-12695: Ignore subscription call-backs that are not "in
// our network segment"
if (gupnp_context_ip_is_ours (context, host)) {
- return g_list_append (list, local_uri);
+ return g_list_append (list, local_uri);
} else {
- g_warning ("%s is not in our network; ignoring", callback);
+ g_warning ("%s is not in our network; ignoring", callback);
}
return list;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]