diff options
author | Tom Gundersen <teg@jklm.no> | 2014-07-03 09:43:31 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-07-03 11:00:01 +0200 |
commit | 563c69c6b2c2bd691352ef522cb9ec95c08a0c63 (patch) | |
tree | d16b86793b1f0406eff5408e90e5838389bfac23 /src/network/networkd-address.c | |
parent | 0372cb2bd2342fa5c5585c666f79159a8341f4a6 (diff) |
networkd: netdev - take ref immediately after calling out
Keeping the refcounting next to the sd_bus_call_async() makes it easier to check.
Diffstat (limited to 'src/network/networkd-address.c')
-rw-r--r-- | src/network/networkd-address.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index 76febc7a07..1ba2108316 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -144,6 +144,8 @@ int address_drop(Address *address, Link *link, return r; } + link_ref(link); + return 0; } @@ -225,6 +227,8 @@ int address_update(Address *address, Link *link, return r; } + link_ref(link); + return 0; } @@ -373,6 +377,8 @@ int address_configure(Address *address, Link *link, return r; } + link_ref(link); + return 0; } |