projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add AES-256-GCM support to SPTPS.
[tinc]
/
src
/
net_socket.c
diff --git
a/src/net_socket.c
b/src/net_socket.c
index
4c76c30
..
c8aa788
100644
(file)
--- a/
src/net_socket.c
+++ b/
src/net_socket.c
@@
-673,20
+673,9
@@
void setup_outgoing_connection(outgoing_t *outgoing, bool verbose) {
if(n->connection) {
logger(DEBUG_CONNECTIONS, LOG_INFO, "Already connected to %s", n->name);
if(n->connection) {
logger(DEBUG_CONNECTIONS, LOG_INFO, "Already connected to %s", n->name);
-
- if(!n->connection->outgoing) {
- n->connection->outgoing = outgoing;
- return;
- } else {
- goto remove;
- }
+ } else {
+ do_outgoing_connection(outgoing);
}
}
-
- do_outgoing_connection(outgoing);
- return;
-
-remove:
- list_delete(&outgoing_list, outgoing);
}
static bool check_tarpit(const sockaddr_t *sa, int fd) {
}
static bool check_tarpit(const sockaddr_t *sa, int fd) {
@@
-864,8
+853,7
@@
void try_outgoing_connections(void) {
node_t *n = lookup_node(name);
if(!n) {
node_t *n = lookup_node(name);
if(!n) {
- n = new_node();
- n->name = xstrdup(name);
+ n = new_node(name);
node_add(n);
}
node_add(n);
}