X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_key.c;h=4f1e1b76c2cf374169ab8c91ea00957448f6a251;hp=22d2ff5403c4ff9e001169cc7ca1cb71d66f280f;hb=4a5c12ec97fa1e82aae2d327fdc648e5203eb478;hpb=987f2a3dd64620141d30bb8b5d5f38733497af42 diff --git a/src/protocol_key.c b/src/protocol_key.c index 22d2ff54..4f1e1b76 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -1,7 +1,7 @@ /* protocol_key.c -- handle the meta-protocol, key exchange Copyright (C) 1999-2005 Ivo Timmermans, - 2000-2012 Guus Sliepen + 2000-2016 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -233,7 +233,7 @@ bool ans_key_h(connection_t *c) { return true; } - if(!*address && from->address.sa.sa_family != AF_UNSPEC) { + if(!*address && from->address.sa.sa_family != AF_UNSPEC && to->minmtu) { char *address, *port; ifdebug(PROTOCOL) logger(LOG_DEBUG, "Appending reflexive UDP address to ANS_KEY from %s to %s", from->name, to->name); sockaddr2str(&from->address, &address, &port);