Use the crypto wrappers again instead of calling OpenSSL directly.
[tinc] / src / tincd.c
index cb86cd8..0f78e45 100644 (file)
@@ -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);