From: Roy Marples Date: Sun, 21 Dec 2025 08:31:52 +0000 (+0000) Subject: options: Ensure ldop is not NULL dereferenced (#568) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;p=thirdparty%2Fdhcpcd.git options: Ensure ldop is not NULL dereferenced (#568) ldop itself cannot be non NULL as it points to the location. but *ldop CAN be NULL. Fixes #567. --- diff --git a/src/if-options.c b/src/if-options.c index 083449b9..9ac9f0b8 100644 --- a/src/if-options.c +++ b/src/if-options.c @@ -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 {