X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Finvitation.c;h=ac410b8143f3eee66bf6303e047f4de9752fad74;hb=18646deca120f0ccc3bfad643dba83547ecc2f20;hp=9a082e3f7a855a1a2e5c2d11c698dbe05b9c69d4;hpb=060ab1cd7cdf750a0477f2a8b6193d28849877e8;p=tinc diff --git a/src/invitation.c b/src/invitation.c index 9a082e3f..ac410b81 100644 --- a/src/invitation.c +++ b/src/invitation.c @@ -252,8 +252,8 @@ int cmd_invite(int argc, char *argv[]) { } // If a daemon is running, ensure no other nodes know about this name - bool found = false; if(connect_tincd(false)) { + bool found = false; sendline(fd, "%d %d", CONTROL, REQ_DUMP_NODES); while(recvline(fd, line, sizeof line)) { @@ -686,7 +686,7 @@ make_names: } // Copy the safe variable to the right config file - fprintf(variables[i].type & VAR_HOST ? fh : f, "%s = %s\n", l, value); + fprintf((variables[i].type & VAR_HOST) ? fh : f, "%s = %s\n", l, value); } fclose(f);