summaryrefslogtreecommitdiff
path: root/libdleyna/server/upnp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdleyna/server/upnp.c')
-rw-r--r--libdleyna/server/upnp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdleyna/server/upnp.c b/libdleyna/server/upnp.c
index 92b3943..2185663 100644
--- a/libdleyna/server/upnp.c
+++ b/libdleyna/server/upnp.c
@@ -163,12 +163,13 @@ static void prv_server_available_cb(GUPnPControlPoint *cp,
prv_device_new_ct_t *priv_t;
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);