Fix fallout
authorSteven Barth <steven@midlink.org>
Wed, 9 Apr 2014 06:56:01 +0000 (08:56 +0200)
committerSteven Barth <steven@midlink.org>
Wed, 9 Apr 2014 06:56:01 +0000 (08:56 +0200)
src/dhcpv6.c
src/odhcp6c.c

index 0d206f3..10f98c5 100644 (file)
@@ -1231,6 +1231,8 @@ static int dhcpv6_calc_refresh_timers(void)
                t1 = l_t1;
                t2 = l_t2;
                t3 = l_t3;
+       } else {
+               t1 = 600;
        }
 
        return (int)(ia_pd_entries + ia_na_entries);
index 36e9949..f1286e5 100644 (file)
@@ -382,6 +382,7 @@ int main(_unused int argc, char* const argv[])
 
                                odhcp6c_clear_state(STATE_SERVER_ID); // Remove binding
 
+                               size_t ia_pd_len, ia_na_len;
                                odhcp6c_get_state(STATE_IA_PD, &ia_pd_len);
                                odhcp6c_get_state(STATE_IA_NA, &ia_na_len);