X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_subnet.c;h=d40b3a33afe255f02439953769ec8a71fbe51342;hp=3e5dadd18ece0176d819474ea1c3d326c9b6434c;hb=a8a65cee083a27afe42cab360596e1453e7141b9;hpb=4e9e3ca89dba68cbacaaa15ddfb298b181a969da;ds=sidebyside diff --git a/src/protocol_subnet.c b/src/protocol_subnet.c index 3e5dadd1..d40b3a33 100644 --- a/src/protocol_subnet.c +++ b/src/protocol_subnet.c @@ -127,8 +127,11 @@ bool add_subnet_h(connection_t *c) free_subnet(allowed); } - if(!cfg) + if(!cfg) { + logger(LOG_WARNING, _("Unauthorized %s from %s (%s) for %s"), + "ADD_SUBNET", c->name, c->hostname, subnetstr); return false; + } free_subnet(allowed); }