projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Be on the safe side with initialisation of c->name.
[oweals/tinc.git]
/
src
/
protocol_auth.c
diff --git
a/src/protocol_auth.c
b/src/protocol_auth.c
index 214d4dd5ed1fc960fc64853164b6cffeb196581d..05f547f22ac5b8ae2f751b8c2023fc9af3ebe07f 100644
(file)
--- a/
src/protocol_auth.c
+++ b/
src/protocol_auth.c
@@
-76,8
+76,11
@@
bool id_h(connection_t *c)
c->name);
return false;
}
- } else
+ } else {
+ if(c->name)
+ free(c->name);
c->name = xstrdup(name);
+ }
/* Check if version matches */