1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

protect from NULL binary path

This commit is contained in:
Alberto Fanjul 2021-01-03 14:07:44 +01:00
parent 3b3531de5c
commit 8d6530ebc9

View file

@ -2482,7 +2482,11 @@ static int supplicant_spawn(struct supplicant *s)
log_debug("spawn supplicant of %s", s->l->ifname);
if (supplicant_find(&binary) < 0) {
log_error("execution of wpas (%s) not possible: %m", binary);
if (binary != NULL) {
log_error("execution of wpas (%s) not possible: %m", binary);
} else {
log_error("execution of wpas not possible: %m");
}
return -EINVAL;
}