Browse code

cli_realloc() for matcher->root_hosts

git-svn: trunk@3065

Török Edvin authored on 2007/05/26 19:22:18
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sat May 26 12:45:00 EEST 2007 (edwin)
2
+----------------------------------
3
+  * libclamav/regex_list.c: cli_realloc() for matcher->root_hosts
4
+  
1 5
 Sat May 26 00:31:10 CEST 2007 (tk)
2 6
 ----------------------------------
3 7
   * libclamav: fix some possible error path leaks by changing cli_realloc()
... ...
@@ -557,7 +557,7 @@ int load_regex_matcher(struct regex_matcher* matcher,FILE* fd,unsigned int optio
557 557
  				struct cli_matcher* old_hosts = matcher->root_hosts;
558 558
  				matcher->root_hosts_cnt++;
559 559
  
560
- 				matcher->root_hosts = cli_realloc2(matcher->root_hosts, matcher->root_hosts_cnt * sizeof(*matcher->root_hosts));
560
+ 				matcher->root_hosts = cli_realloc(matcher->root_hosts, matcher->root_hosts_cnt * sizeof(*matcher->root_hosts));
561 561
  				if(!matcher->root_hosts) {
562 562
  					matcher->root_hosts = old_hosts;/* according to manpage this must still be valid*/
563 563
  					return CL_EMEM;