diff --git a/src/modules/module-client-device/protocol-native.c b/src/modules/module-client-device/protocol-native.c index 59d16e31f..cbcca0c9a 100644 --- a/src/modules/module-client-device/protocol-native.c +++ b/src/modules/module-client-device/protocol-native.c @@ -33,6 +33,8 @@ static inline int parse_item(struct spa_pod_parser *prs, struct spa_dict_item *i SPA_POD_String(&item->value), NULL)) < 0) return res; + if (item->key == NULL || item->value == NULL) + return -EINVAL; if (spa_strstartswith(item->value, "pointer:")) item->value = ""; return 0;