projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2059814
)
Fix a possible segmentation fault during key upgrades.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 24 Apr 2015 21:43:19 +0000
(23:43 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 24 Apr 2015 21:43:19 +0000
(23:43 +0200)
read_rsa_public_key() was bailing out early if the given node already has an
Ed25519
key, and
returned true even though c->rsa was NULL. The early bailout code isn't necessary anymore, so just
remove it.
src/net_setup.c
patch
|
blob
|
history
diff --git
a/src/net_setup.c
b/src/net_setup.c
index c4f01b56fde078cedfc4aec1d26a2aec9d742868..3c66c136c3d2e580fd44555ac0464201e5ccb08d 100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-148,9
+148,6
@@
bool read_ecdsa_public_key(connection_t *c) {
#ifndef DISABLE_LEGACY
bool read_rsa_public_key(connection_t *c) {
- if(ecdsa_active(c->ecdsa))
- return true;
-
FILE *fp;
char *fname;
char *n;