diff options
author | Thomas Haller <thaller@redhat.com> | 2015-09-22 14:17:32 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-09-22 14:41:47 +0200 |
commit | f89087272b5561c9a3fc9d6a4e2a09f75f688fa7 (patch) | |
tree | 49266b703841c8a2f5d2d031f9546f66ccb6dd99 /src/test/test-daemon.c | |
parent | c97e586d8a18db5dc505d76059ed1d9add234925 (diff) |
sd-dhcp6: ensure canceling lease timers and refactor setting lease
Factor our common code to set/clear the client lease.
Resetting the lease involves canceling old timers.
Also, most importantly, when resetting the lease
in client_receive_advertise(), ensure to cancel
the timers too. It is not immediately clear, why
at that point no timers would be pending.
The lease-unref from sd_dhcp6_client_unref() can
be omited, because of the preceeding client_reset()
call.
Diffstat (limited to 'src/test/test-daemon.c')
0 files changed, 0 insertions, 0 deletions