Move up state_init()
This commit is contained in:
1 parent
219384b7e5
commit
2999faf5d7
1 file changed
+3
-3
+3
-3
@@ -1151,6 +1151,9 @@ int main (int argc, char **argv)
|
||||
if (!ai)
|
||||
return 1;
|
||||
|
||||
if (state_init(statefile))
|
||||
return 1;
|
||||
|
||||
struct fdbuf tun = { .fd = -1 };
|
||||
struct fdbuf sock = { .fd = -1 };
|
||||
|
||||
@@ -1183,9 +1186,6 @@ int main (int argc, char **argv)
|
||||
if (gt_setup_secretkey(&ctx, keyfile))
|
||||
return 1;
|
||||
|
||||
if (state_init(statefile))
|
||||
return 1;
|
||||
|
||||
long retry = 0;
|
||||
uint8_t *db = NULL;
|
||||
|
||||
|
||||
Reference in new issue
Block a user