1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/ftp/proftpd/files/extra-patch-modules_mod_xfer.c
Beech Rintoul e079454967 - Update to 1.3.2rc2
- Patch long command processing vulnerability (http://bugs.proftpd.org/show_bug.cgi?id=3115)
- Remove third party modules mod_codeconv, mod_comb, mod_sql_tds (won't build)
- Update mod_clamav
2008-09-23 20:15:56 +00:00

24 lines
515 B
C

--- modules/mod_xfer.c.org Tue Jan 1 12:31:32 2008
+++ modules/mod_xfer.c Tue Jan 1 16:45:20 2008
@@ -42,6 +42,8 @@
#include <regex.h>
#endif
+#include "mod_clamav.h"
+
extern module auth_module;
extern pid_t mpid;
@@ -1582,6 +1584,11 @@
return PR_ERROR(cmd);
}
+ if (clamav_scan(cmd)) {
+ pr_data_close(FALSE);
+ return PR_ERROR(cmd);
+ }
+
if (session.xfer.path &&
session.xfer.path_hidden) {
if (pr_fsio_rename(session.xfer.path_hidden, session.xfer.path) != 0) {