summaryrefslogtreecommitdiff
path: root/libdleyna
diff options
context:
space:
mode:
Diffstat (limited to 'libdleyna')
-rw-r--r--libdleyna/renderer/upnp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdleyna/renderer/upnp.c b/libdleyna/renderer/upnp.c
index 5c10d98..6b7ab90 100644
--- a/libdleyna/renderer/upnp.c
+++ b/libdleyna/renderer/upnp.c
@@ -248,12 +248,12 @@ static void prv_server_unavailable_cb(GUPnPControlPoint *cp,
udn = gupnp_device_info_get_udn((GUPnPDeviceInfo *)proxy);
- if (!udn)
- goto on_error;
-
ip_address = gupnp_context_get_host_ip(
gupnp_control_point_get_context(cp));
+ if (!udn || !ip_address)
+ goto on_error;
+
DLEYNA_LOG_DEBUG("UDN %s", udn);
DLEYNA_LOG_DEBUG("IP Address %s", ip_address);