[gupnp/gupnp-1.0] service: More stlye fixes
- From: Jens Georg <jensgeorg src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gupnp/gupnp-1.0] service: More stlye fixes
 
- Date: Sat, 20 Jun 2020 18:14:51 +0000 (UTC)
 
commit d52e462d18f21520e36b24f35f7a515b1bf28e37
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 d3da2c3..001cccc 100644
--- a/libgupnp/gupnp-service.c
+++ b/libgupnp/gupnp-service.c
@@ -1190,17 +1190,18 @@ add_subscription_callback (GUPnPContext *context,
             const char *host = NULL;
 
             local_uri = soup_uri_new (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]