ports/security/klamav/files/patch-src__klamd__scanner.c
Renato Botelho e74905e54b - Update security/clamav to 0.92
- Add a new OPTION (RAR) because unrar code is optional to fix a license
  issue
- Some cosmetic changes
- Chase library version bump and bump PORTREVISION of all dependant ports

Approved by:	portmgr (pav)
Security:	CVE-2007-6335, CVE-2007-6336, CVE-2007-6337
2007-12-19 23:08:38 +00:00

11 lines
388 B
C

--- src/klamd/scanner.c.orig 2007-12-19 08:33:50.000000000 -0200
+++ src/klamd/scanner.c 2007-12-19 08:36:04.000000000 -0200
@@ -396,7 +396,7 @@
logg("*Accepted connection on port %d, fd %d\n", port, acceptd);
- if ((tmpname = cli_gentempdesc(NULL, &tmpd)) == NULL) {
+ if (cli_gentempfd(NULL, &tmpname, &tmpd) ) {
shutdown(sockfd, 2);
close(sockfd);
close(acceptd);