projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix possible read of freed memory when verifying the signature of a file.
[tinc]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
0c07471
..
30e6f84
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-591,7
+591,7
@@
bool setup_myself_reloadable(void) {
subnet_add(NULL, s);
}
subnet_add(NULL, s);
}
-#if !defined(
SOL
_IP) || !defined(IP_TOS)
+#if !defined(
IPPROTO
_IP) || !defined(IP_TOS)
if(priorityinheritance)
logger(DEBUG_ALWAYS, LOG_WARNING, "%s not supported on this platform for IPv4 connections", "PriorityInheritance");
#endif
if(priorityinheritance)
logger(DEBUG_ALWAYS, LOG_WARNING, "%s not supported on this platform for IPv4 connections", "PriorityInheritance");
#endif
@@
-1154,8
+1154,7
@@
void close_network_connections(void) {
if(myself && myself->connection) {
subnet_update(myself, NULL, false);
if(myself && myself->connection) {
subnet_update(myself, NULL, false);
- terminate_connection(myself->connection, false);
- free_connection(myself->connection);
+ connection_del(myself->connection);
}
for(int i = 0; i < listen_sockets; i++) {
}
for(int i = 0; i < listen_sockets; i++) {