X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsubnet.c;h=94000cc0eb8b9fcb23012162850e6b00a29e15dc;hb=4436af55e55e79b496264fe114039fbc1198d71f;hp=1ddf11e53b7e1bb8ea678a1944273ce745a5efe2;hpb=bc4df95a48857aa4ab65fb47eabd48c48d650ca0;p=tinc diff --git a/src/subnet.c b/src/subnet.c index 1ddf11e5..94000cc0 100644 --- a/src/subnet.c +++ b/src/subnet.c @@ -31,6 +31,7 @@ #include "script.h" #include "subnet.h" #include "xalloc.h" +#include "sandbox.h" /* lists type of subnet */ uint32_t hash_seed; @@ -321,6 +322,10 @@ subnet_t *lookup_subnet_ipv6(const ipv6_t *address) { } void subnet_update(node_t *owner, subnet_t *subnet, bool up) { + if(!sandbox_can(START_PROCESSES, RIGHT_NOW)) { + return; + } + char netstr[MAXNETSTR]; char *address, *port; char empty[] = "";