projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
terminate_connection(): delete non-outgoing (aka incoming) connections.
[tinc]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index
58db16e
..
295546d
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-145,8
+145,10
@@
void terminate_connection(connection_t *c, bool report) {
/* Check if this was our outgoing connection */
if(c->outgoing) {
- do_outgoing_connection(c);
- }
+ do_outgoing_connection(c);
+ } else {
+ connection_del(c);
+ }
}
/*