X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_key.c;h=a7d4447a9a08d40b70c48b53e5bb8c71a24314ab;hp=6ff68d274cacf0eb842e33ace179913a322257b0;hb=5672863e59e6a114ac6b66de98254b14266c0e61;hpb=67766d65f06854ee894d784f638c5c9cd2b50bca diff --git a/src/protocol_key.c b/src/protocol_key.c index 6ff68d27..a7d4447a 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -34,9 +34,9 @@ #include "utils.h" #include "xalloc.h" -bool mykeyused = false; +static bool mykeyused = false; -void send_key_changed() { +void send_key_changed(void) { avl_node_t *node; connection_t *c; @@ -242,8 +242,6 @@ bool ans_key_h(connection_t *c) { /* Update our copy of the origin's packet key */ from->outkey = xrealloc(from->outkey, strlen(key) / 2); - - from->outkey = xstrdup(key); from->outkeylength = strlen(key) / 2; hex2bin(key, from->outkey, from->outkeylength);