]> git.ipfire.org Git - network.git/commitdiff
networkd: config: Actually return entry instead of freeing it straight away
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Feb 2023 15:24:19 +0000 (15:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Feb 2023 15:24:19 +0000 (15:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/networkd/config.c

index 788308f8b3db4c59d421e418e9a113163c0a904e..ef6218e865be17972052acd0aaa8b35d563892a5 100644 (file)
@@ -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;