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:
parent
3b3531de5c
commit
8d6530ebc9
1 changed files with 5 additions and 1 deletions
|
@ -2482,7 +2482,11 @@ static int supplicant_spawn(struct supplicant *s)
|
||||||
log_debug("spawn supplicant of %s", s->l->ifname);
|
log_debug("spawn supplicant of %s", s->l->ifname);
|
||||||
|
|
||||||
if (supplicant_find(&binary) < 0) {
|
if (supplicant_find(&binary) < 0) {
|
||||||
|
if (binary != NULL) {
|
||||||
log_error("execution of wpas (%s) not possible: %m", binary);
|
log_error("execution of wpas (%s) not possible: %m", binary);
|
||||||
|
} else {
|
||||||
|
log_error("execution of wpas not possible: %m");
|
||||||
|
}
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue