initialise refcount in cli_loadmd()

git-svn: trunk@1454
remotes/push_mirror/metadata
Tomasz Kojm 20 years ago
parent dd1f314650
commit 57a8e52467
  1. 4
      clamav-devel/ChangeLog
  2. 1
      clamav-devel/libclamav/readdb.c

@ -1,3 +1,7 @@
Wed Apr 6 16:11:50 CEST 2005 (tk)
----------------------------------
* libclamav/readdb.c: initialise refcount in cli_loadmd()
Tue Apr 5 14:27:32 BST 2005 (trog)
-----------------------------------
* libclamav/vba_extract.c: fix possible crash

@ -725,6 +725,7 @@ static int cli_loadmd(FILE *fd, struct cl_node **root, unsigned int *signo, int
*root = (struct cl_node *) cli_calloc(1, sizeof(struct cl_node));
if(!*root)
return CL_EMEM;
(*root)->refcount = 1;
}
while(fgets(buffer, FILEBUFF, fd)) {

Loading…
Cancel
Save