diff options
author | Daniel Mack <github@zonque.org> | 2015-11-17 09:33:59 +0100 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-11-17 09:33:59 +0100 |
commit | bf7e619b3b2b97ff2a4952ab125c794c0d3bdb5f (patch) | |
tree | 9b94bf28557da6f2d5a78da20c44b5da9b8e8676 /src/libsystemd-network/sd-ipv4ll.c | |
parent | f1f8a5a5e110f485257e8702ad30b9997e529a74 (diff) | |
parent | 6059dab8897ecd24a51a6601499c1bb9002bc54a (diff) |
Merge pull request #1924 from poettering/some-fixes-2
casting fixes, another siphash24 alignment fix, and more
Diffstat (limited to 'src/libsystemd-network/sd-ipv4ll.c')
-rw-r--r-- | src/libsystemd-network/sd-ipv4ll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-ipv4ll.c b/src/libsystemd-network/sd-ipv4ll.c index 006db6feee..30a7ef5785 100644 --- a/src/libsystemd-network/sd-ipv4ll.c +++ b/src/libsystemd-network/sd-ipv4ll.c @@ -101,6 +101,8 @@ int sd_ipv4ll_new(sd_ipv4ll **ret) { if (!ll) return -ENOMEM; + ll->n_ref = 1; + r = sd_ipv4acd_new(&ll->acd); if (r < 0) return r; @@ -109,8 +111,6 @@ int sd_ipv4ll_new(sd_ipv4ll **ret) { if (r < 0) return r; - ll->n_ref = 1; - *ret = ll; ll = NULL; |