From: Michael Tremer Date: Fri, 10 Feb 2023 15:24:19 +0000 (+0000) Subject: networkd: config: Actually return entry instead of freeing it straight away X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82f84c5ff3079de8b57f5a10a118fb4ecab20ffb;p=network.git networkd: config: Actually return entry instead of freeing it straight away Signed-off-by: Michael Tremer --- diff --git a/src/networkd/config.c b/src/networkd/config.c index 788308f8..ef6218e8 100644 --- a/src/networkd/config.c +++ b/src/networkd/config.c @@ -72,6 +72,8 @@ static struct nw_config_entry* nw_config_entry_create( // Append the new entry STAILQ_INSERT_TAIL(&config->entries, entry, nodes); + return entry; + ERROR: nw_config_entry_free(entry); return NULL;