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:
8b9e5af
)
terminate_connection(): delete non-outgoing (aka incoming) connections.
author
Sven-Haegar Koch
<haegar@sdinet.de>
Sun, 22 Apr 2012 00:55:06 +0000
(
02:55
+0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 8 May 2012 14:19:04 +0000
(16:19 +0200)
src/net.c
patch
|
blob
|
history
diff --git
a/src/net.c
b/src/net.c
index 58db16e29f1d26778a6a649adcea0af1f49b448f..295546df6068a5e63e2c4701d2d5c56d94f4a650 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);
+ }
}
/*