aboutsummaryrefslogtreecommitdiff
path: root/net/gupnp/files/patch-libgupnp-gupnp-control-point.c
blob: 2705d6c17981b6790dd0b6dd71b274bc5d9dc311 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- libgupnp/gupnp-control-point.c.orig	2018-11-12 22:04:49 UTC
+++ libgupnp/gupnp-control-point.c
@@ -795,7 +795,7 @@ parse_usn (const char *usn,
         /* Count elements */
         count = g_strv_length (bits);
 
-        if (count == 1) {
+        if (count == 1 || (count == 2 && strlen(bits[1]) == 0)) {
                 /* uuid:device-UUID */
 
                 *udn = bits[0];