mirror of
https://github.com/NetworkConfiguration/dhcpcd.git
synced 2026-01-26 14:13:26 +00:00
options: Ensure ldop is not NULL dereferenced
ldop itself cannot be non NULL as it points to the location. but *ldop CAN be NULL. Fixes #567.
This commit is contained in:
parent
9c48f4c7dd
commit
f2a7340afd
@ -1882,7 +1882,7 @@ err_sla:
|
||||
if (*edop) {
|
||||
dop = &(*edop)->embopts;
|
||||
dop_len = &(*edop)->embopts_len;
|
||||
} else if (ldop) {
|
||||
} else if (*ldop) {
|
||||
dop = &(*ldop)->embopts;
|
||||
dop_len = &(*ldop)->embopts_len;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user