projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e7e481
)
Send a RELOAD to a running tincd when a new invitation key has been generated.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 1 Sep 2013 20:59:51 +0000
(22:59 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 1 Sep 2013 20:59:51 +0000
(22:59 +0200)
src/invitation.c
patch
|
blob
|
history
diff --git
a/src/invitation.c
b/src/invitation.c
index 3f7f97647c7abef45637fa1114ff2e82e61ab604..6ccfc1f4cf8e7499bbf2e407174074d698c23aa3 100644
(file)
--- a/
src/invitation.c
+++ b/
src/invitation.c
@@
-340,12
+340,17
@@
int cmd_invite(int argc, char *argv[]) {
}
chmod(filename, 0600);
ecdsa_write_pem_private_key(key, f);
+ fclose(f);
+
+ if(connect_tincd(false))
+ sendline(fd, "%d %d", CONTROL, REQ_RELOAD);
} else {
key = ecdsa_read_pem_private_key(f);
+ fclose(f);
if(!key)
fprintf(stderr, "Could not read private key from %s\n", filename);
}
- fclose(f);
+
free(filename);
if(!key)
return 1;