diff options
author | Jens Georg <mail@jensge.org> | 2020-06-17 15:31:09 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2020-06-17 15:31:09 +0200 |
commit | 3c9ca007137bff56aa90da57ee409b8e203d6a54 (patch) | |
tree | 9bb137d1b677ffe243affab918cc354661f40050 | |
parent | 2836a778a4f9f02252b18d48cb945d62d100b9fa (diff) | |
download | gupnp-3c9ca007137bff56aa90da57ee409b8e203d6a54.tar.gz |
service: More stlye fixes
-rw-r--r-- | libgupnp/gupnp-service.c | 9 |
1 files 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; |