Avoid sending empty DHCPv6 release messages
authorSteven Barth <steven@midlink.org>
Wed, 10 Dec 2014 10:40:40 +0000 (11:40 +0100)
committerSteven Barth <steven@midlink.org>
Wed, 10 Dec 2014 10:40:40 +0000 (11:40 +0100)
src/odhcp6c.c

index 3712830..a37de91 100644 (file)
@@ -395,6 +395,8 @@ int main(_unused int argc, char* const argv[])
                        break;
                }
 
+               odhcp6c_expire();
+
                size_t ia_pd_len, ia_na_len, server_id_len;
                odhcp6c_get_state(STATE_IA_PD, &ia_pd_len);
                odhcp6c_get_state(STATE_IA_NA, &ia_na_len);