X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Fhooks.c;fp=lib%2Fhooks.c;h=2ecdd1e9b12ac2659b5d9abbca2b861af6ca5ff9;hp=ec528121a3a9c8dd0a651529a4648268defbc548;hb=e8effcf93d25847358118445eee3c3c80a40042c;hpb=eeda1f8bbf9461cc878d605223ae4d42b05d3da0 diff --git a/lib/hooks.c b/lib/hooks.c index ec528121..2ecdd1e9 100644 --- a/lib/hooks.c +++ b/lib/hooks.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: hooks.c,v 1.1.2.3 2002/04/16 21:24:55 zarq Exp $ + $Id: hooks.c,v 1.1.2.4 2002/04/16 21:47:18 zarq Exp $ */ #include "config.h" @@ -68,7 +68,7 @@ void run_hooks(const char *type, ...) if(!hooks_tree) return; hn = (struct hooks_node*)avl_search(hooks_tree, type); - if(!hn) + if(!hn || !(hn->hooks->head)) { fprintf(stderr, "Warning, no hooks found for `%s'\n", type); return;