X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsubnet.c;h=94000cc0eb8b9fcb23012162850e6b00a29e15dc;hb=28be4baae016a5a771d0d9ec6e97ef38a4fc9e46;hp=1ddf11e53b7e1bb8ea678a1944273ce745a5efe2;hpb=28b7a53b693f6b4e70218a926e68a36ece54cda1;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[] = "";