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 37128308f26666d8e75a7941bb758ff92635d9e9..a37de913a7c722a2ed11e110428a0d93d5c57374 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);