projects
/
project
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0e9dbf
)
dhcpv6-ia: Fix segfault when writing DHCPv4 leases in state file
author
Hans Dedecker
<dedeckeh@gmail.com>
Wed, 26 Apr 2017 07:56:06 +0000
(09:56 +0200)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Wed, 26 Apr 2017 08:03:25 +0000
(10:03 +0200)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv6-ia.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6-ia.c
b/src/dhcpv6-ia.c
index ab347f5075d5a8562a53f2b6464a9b05fe7e12a5..3275da5f74959d28d79a2ccfdd75d9a827c7ae61 100644
(file)
--- 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 ? c
txt.c
->hostname : "-"),
+ (c->hostname ? c->hostname : "-"),
(c->valid_until > now ?
(c->valid_until - now + wall_time) :
(INFINITE_VALID(c->valid_until) ? -1 : 0)),