git-svn: trunk@3276
aCaB authored on 2007/10/06 20:37:44... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sat Oct 6 12:36:13 CEST 2007 (acab) |
|
2 |
+------------------------------------ |
|
3 |
+ * libclamav/nsis/nulsft.c: check return value of gentemp() |
|
4 |
+ |
|
1 | 5 |
Sat Oct 6 10:47:26 EEST 2007 (edwin) |
2 | 6 |
------------------------------------ |
3 | 7 |
* 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) { |
492 | 492 |
|
493 | 493 |
nsist.ifd = desc; |
494 | 494 |
nsist.off = offset; |
495 |
- nsist.dir = cli_gentemp(NULL); |
|
495 |
+ if (!(nsist.dir = cli_gentemp(NULL))) |
|
496 |
+ return CL_ETMPDIR; |
|
496 | 497 |
if(mkdir(nsist.dir, 0700)) { |
497 | 498 |
cli_dbgmsg("NSIS: Can't create temporary directory %s\n", nsist.dir); |
498 | 499 |
free(nsist.dir); |