X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_key.c;h=a7d4447a9a08d40b70c48b53e5bb8c71a24314ab;hp=f34ebaa585a64ec21416aaab565ba976c7f9d793;hb=9f6a96af3939bd2de410ce346a8c8fbcf93e7c9b;hpb=6d08eb1614b59d5f86a43edda9db06fca72b76cd diff --git a/src/protocol_key.c b/src/protocol_key.c index f34ebaa5..a7d4447a 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.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);