Browse code

fix compilation error

git-svn: trunk@3199

Tomasz Kojm authored on 2007/09/02 21:18:28
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sun Sep  2 13:28:01 CEST 2007 (tk)
2
+----------------------------------
3
+  * clamd: fix compilation error
4
+
1 5
 Fri Aug 31 21:08:22 CEST 2007 (tk)
2 6
 ----------------------------------
3 7
   * contrib: fix bb#644 (Contrib files have wrong shebang line)
... ...
@@ -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
     }