diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-04-26 09:56:06 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-04-26 10:03:25 +0200 |
commit | a54afb5092cbd69097d10f5a495ddbd94fd9e2a4 (patch) | |
tree | 7aa731dc310d322a0c40085da161e84e54cbf2c1 /src | |
parent | c0e9dbfd8d49077d07d25a59662220d206943572 (diff) |
dhcpv6-ia: Fix segfault when writing DHCPv4 leases in state file
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/dhcpv6-ia.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index ab347f5..3275da5 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -385,7 +385,7 @@ void dhcpv6_write_statefile(void) /* iface DUID iaid hostname lifetime assigned length [addrs...] */ ctxt.buf_idx = snprintf(ctxt.buf, ctxt.buf_len, "# %s %s ipv4 %s %ld %x 32 ", ctxt.iface->ifname, duidbuf, - (c->hostname ? ctxt.c->hostname : "-"), + (c->hostname ? c->hostname : "-"), (c->valid_until > now ? (c->valid_until - now + wall_time) : (INFINITE_VALID(c->valid_until) ? -1 : 0)), |