X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_key.c;h=1e7aa033e3316b557d1ad48481488a088f91d0eb;hb=ee8a214318fd6dbe6bc5d6b510896f30d92d46c6;hp=9986128741822e7db6276559c28f7175aa5d41e6;hpb=3794e551c7db9aa81405f65f7b04a9951c4120b2;p=tinc diff --git a/src/protocol_key.c b/src/protocol_key.c index 99861287..1e7aa033 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -34,7 +34,7 @@ static bool mykeyused = false; -void send_key_changed() { +void send_key_changed(void) { splay_node_t *node; connection_t *c; @@ -275,7 +275,7 @@ bool ans_key_h(connection_t *c, char *request) { update_node_udp(from, &sa); } - if(from->options & OPTION_PMTU_DISCOVERY && !event_initialized(&from->mtuevent)) + if(from->options & OPTION_PMTU_DISCOVERY) send_mtu_probe(from); return true;