X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_key.c;h=1d471c80084181817ab3529821f9fac5675676f9;hp=f34ebaa585a64ec21416aaab565ba976c7f9d793;hb=ae5249610954af17c68c547bb1b45ad286ad647e;hpb=6d08eb1614b59d5f86a43edda9db06fca72b76cd diff --git a/src/protocol_key.c b/src/protocol_key.c index f34ebaa5..1d471c80 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -40,7 +40,7 @@ void send_key_changed(void) { avl_node_t *node; connection_t *c; - send_request(broadcast, "%d %x %s", KEY_CHANGED, rand(), myself->name); + send_request(everyone, "%d %x %s", KEY_CHANGED, rand(), myself->name); /* Immediately send new keys to directly connected nodes to keep UDP mappings alive */ @@ -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);