]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Only release bound states.
authorRoy Marples <roy@marples.name>
Thu, 30 May 2013 22:21:42 +0000 (22:21 +0000)
committerRoy Marples <roy@marples.name>
Thu, 30 May 2013 22:21:42 +0000 (22:21 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 0e65e22ba565b7724188b935302d3f41d6f698a7..2d0bbeca9704bf252e9a8bdaa5aa8154c209abe1 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -981,6 +981,9 @@ dhcp6_startrelease(struct interface *ifp)
        struct dhcp6_state *state;
 
        state = D6_STATE(ifp);
+       if (state->state != DH6S_BOUND)
+               return;
+
        state->state = DH6S_RELEASE;
        state->start_uptime = uptime();
        state->RTC = 0;