git-svn: trunk@3199
Tomasz Kojm authored on 2007/09/02 21:18:28... | ... |
@@ -508,11 +508,11 @@ int scanstream(int odesc, unsigned long int *scanned, const struct cl_engine *en |
508 | 508 |
|
509 | 509 |
logg("*Accepted connection on port %u, fd %d\n", port, acceptd); |
510 | 510 |
|
511 |
- if ((tmpname = cli_gentempdesc(NULL, &tmpd)) == NULL) { |
|
511 |
+ if(cli_gentempfd(NULL, &tmpname, &tmpd)) { |
|
512 | 512 |
shutdown(sockfd, 2); |
513 | 513 |
close(sockfd); |
514 | 514 |
close(acceptd); |
515 |
- mdprintf(odesc, "tempfile() failed. ERROR\n"); |
|
515 |
+ mdprintf(odesc, "cli_gentempfd() failed. ERROR\n"); |
|
516 | 516 |
logg("!ScanStream %u: Can't create temporary file.\n", port); |
517 | 517 |
return -1; |
518 | 518 |
} |