projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a few small memory leaks.
[oweals/tinc.git]
/
src
/
protocol_key.c
diff --git
a/src/protocol_key.c
b/src/protocol_key.c
index f34ebaa585a64ec21416aaab565ba976c7f9d793..a7d4447a9a08d40b70c48b53e5bb8c71a24314ab 100644
(file)
--- 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);