From f2a7340afdc15f6bc4fb269972e21445daf245f6 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 14 Dec 2025 11:33:04 +0000 Subject: [PATCH] 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. --- src/if-options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/if-options.c b/src/if-options.c index 2819113d..1957e6f5 100644 --- a/src/if-options.c +++ b/src/if-options.c @@ -1882,7 +1882,7 @@ parse_option(struct dhcpcd_ctx *ctx, const char *ifname, struct if_options *ifo, 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 {