]> git.meshlink.io Git - meshlink/commitdiff
Fix check for event initialization due to the merge.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 14 May 2011 09:52:35 +0000 (11:52 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 14 May 2011 09:52:35 +0000 (11:52 +0200)
src/protocol_key.c

index ab56ac5affce6c8523edf80ffcda8474387cb0be..9986128741822e7db6276559c28f7175aa5d41e6 100644 (file)
@@ -275,7 +275,7 @@ bool ans_key_h(connection_t *c, char *request) {
                update_node_udp(from, &sa);
        }
 
-       if(from->options & OPTION_PMTU_DISCOVERY && !from->mtuevent)
+       if(from->options & OPTION_PMTU_DISCOVERY && !event_initialized(&from->mtuevent))
                send_mtu_probe(from);
 
        return true;