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:
Roy Marples 2025-12-14 11:33:04 +00:00
parent 9c48f4c7dd
commit f2a7340afd

View File

@ -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 {