check return value of gentemp()

git-svn: trunk@3276
remotes/push_mirror/metadata
aCaB 18 years ago
parent 8ea27f5c18
commit f5354453e0
  1. 4
      ChangeLog
  2. 3
      libclamav/nsis/nulsft.c

@ -1,3 +1,7 @@
Sat Oct 6 12:36:13 CEST 2007 (acab)
------------------------------------
* libclamav/nsis/nulsft.c: check return value of gentemp()
Sat Oct 6 10:47:26 EEST 2007 (edwin)
------------------------------------
* libclamav/phish*.[ch], regex_list.c, rtf.c: fix some warnings

@ -492,7 +492,8 @@ int cli_scannulsft(int desc, cli_ctx *ctx, off_t offset) {
nsist.ifd = desc;
nsist.off = offset;
nsist.dir = cli_gentemp(NULL);
if (!(nsist.dir = cli_gentemp(NULL)))
return CL_ETMPDIR;
if(mkdir(nsist.dir, 0700)) {
cli_dbgmsg("NSIS: Can't create temporary directory %s\n", nsist.dir);
free(nsist.dir);

Loading…
Cancel
Save