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 0d206f352d8d1d1ad04fb8066cd289bfb5603525..10f98c5aa8679cd123310ee7ae64bdc5041bf99a 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 36e9949f3a5c644ddd0a488e9e36f69f929aa734..f1286e5e93b70f2c2f7a56471e898abe70480267 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);