diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-08-27 12:53:43 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-08-27 12:53:43 +0200 |
commit | dce391e78f5d8d5f4feb3eb6a15436de12dacf46 (patch) | |
tree | dca5b9de132240ac3743dbcfcc7b81e87ca57adc /src/network/networkd-link.c | |
parent | 21b80ad126c1aa43bd6d0e5a7ed3cc7c0f10efb0 (diff) |
networkd: properly reset transient hostname when we lose a DHCP lease
Previously we were setting the transient hostname again, rather than
resetting it.
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 371136a11e..5af82059d8 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -801,9 +801,8 @@ int link_set_hostname(Link *link, const char *hostname) { assert(link); assert(link->manager); - assert(hostname); - log_link_debug(link, "Setting transient hostname: '%s'", hostname); + log_link_debug(link, "Setting transient hostname: '%s'", strna(hostname)); if (!link->manager->bus) { /* TODO: replace by assert when we can rely on kdbus */ |