Browse code

apply patch from Edvin reported by Luca

git-svn: trunk@2467

Tomasz Kojm authored on 2006/10/31 02:53:03
Showing 1 changed files
... ...
@@ -19,6 +19,9 @@
19 19
  *  MA 02110-1301, USA.
20 20
  *
21 21
  *  $Log: regex_list.c,v $
22
+ *  Revision 1.13  2006/10/30 17:53:03  tkojm
23
+ *  apply patch from Edvin reported by Luca
24
+ *
22 25
  *  Revision 1.12  2006/10/28 15:34:40  tkojm
23 26
  *  .pdb/.wdb files now use colon as delimiter
24 27
  *
... ...
@@ -741,7 +744,8 @@ static int build_regex_list(struct regex_matcher* matcher)
741 741
 		return -1;/*TODO: better error code */
742 742
 	}
743 743
 	cli_dbgmsg("Building regex list\n");
744
- 	if(( rc = cli_ac_buildtrie(&matcher->root_hosts[matcher->root_hosts_cnt-1]) ))
744
+	if(matcher->root_hosts)
745
+		if(( rc = cli_ac_buildtrie(&matcher->root_hosts[matcher->root_hosts_cnt-1]) ))
745 746
  			return rc;
746 747
 	matcher->list_built=1;
747 748