]> git.meshlink.io Git - meshlink/blobdiff - src/tincd.c
Move RSA key generation into the wrappers.
[meshlink] / src / tincd.c
index cb86cd8b522d5dbaf4a18c6da2f95c0d17b8eeb2..3e3b7b0dfd9586b435912958d2c275c2f9a70fca 100644 (file)
@@ -186,7 +186,7 @@ static void make_names(void)
 #ifdef HAVE_MINGW
        HKEY key;
        char installdir[1024] = "";
-       long len = sizeof(installdir);
+       long len = sizeof installdir;
 #endif
 
        if(netname)
@@ -213,7 +213,7 @@ static void make_names(void)
 #endif
 
        if(!controlsocketname)
-               asprintf(&controlsocketname, LOCALSTATEDIR "/run/%s.control", identname);
+               asprintf(&controlsocketname, "%s/run/%s.control/socket", LOCALSTATEDIR, identname);
 
        if(!logfilename)
                asprintf(&logfilename, LOCALSTATEDIR "/log/%s.log", identname);