pulse-server: don't crash with NULL arguments in module-load

This commit is contained in:
Wim Taymans 2020-11-26 09:26:29 +01:00
parent ddfb310087
commit 765ce0564f

View file

@ -152,6 +152,10 @@ static int load_module(struct client *client, const char *name, const char *argu
struct pw_properties *props = NULL;
const char *str;
if (argument == NULL) {
res = -EINVAL;
goto out;
}
props = pw_properties_new_string(argument);
if (props == NULL) {
res = -EINVAL;