Don't try to send MTU probes to unreachable nodes.
If there is an outstanding MTU probe event for a node which is not reachable anymore, a UDP packet would be sent to that node, which caused a key request to be sent to that node, which triggered a NULL pointer dereference. Probes and other UDP packets to unreachable nodes are now dropped.
This commit is contained in:
parent
261d1eac1c
commit
36f8e4da8b
2 changed files with 15 additions and 0 deletions
|
|
@ -41,6 +41,11 @@ bool send_meta(connection_t *c, const char *buffer, int length)
|
|||
|
||||
cp();
|
||||
|
||||
if(!c) {
|
||||
logger(LOG_ERR, _("send_meta() called with NULL pointer!"));
|
||||
abort();
|
||||
}
|
||||
|
||||
ifdebug(META) logger(LOG_DEBUG, _("Sending %d bytes of metadata to %s (%s)"), length,
|
||||
c->name, c->hostname);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue