X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=602f18b1ff99a0c7f6167e529f517393e47c0061;hp=a13e2661046f58d2ca64df3a423e1e0a1e492f17;hb=d273efb177738d429e3cef7d8db8ee5cc8dcada7;hpb=73d77dd416b87b7c4e9b6aa450f64846235cd2b4 diff --git a/src/tincd.c b/src/tincd.c index a13e2661..602f18b1 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -115,6 +115,7 @@ static struct option const long_options[] = { #ifdef HAVE_MINGW static struct WSAData wsa_state; +CRITICAL_SECTION mutex; #endif static void usage(bool status) @@ -228,7 +229,7 @@ static bool parse_options(int argc, char **argv) generate_keys &= ~7; /* Round it to bytes */ } else - generate_keys = 1024; + generate_keys = 2048; break; case 'R': /* chroot to NETNAME dir */ @@ -568,6 +569,8 @@ int main(int argc, char **argv) int main2(int argc, char **argv) { + InitializeCriticalSection(&mutex); + EnterCriticalSection(&mutex); #endif if(!detach())