gentoo-ebuilds/net-ftp/proftpd/files/proftpd-1.3.9-clamav-refresh-api.patch
NHOrus 4d757e0f78
net-ftp/proftpd: fix compilation errors with GCC-15 with more USE flags
errors were happening with USE=kerberos,diskuse,clamav

Closes: https://bugs.gentoo.org/953814
Closes: https://bugs.gentoo.org/953866
Closes: https://bugs.gentoo.org/953810
Closes: https://bugs.gentoo.org/953871
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/41596
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2025-04-15 12:20:02 -04:00

24 lines
861 B
Diff

https://github.com/jbenden/mod_clamav/commit/509be57280634453be338b52d1bd0af212356587
From 509be57280634453be338b52d1bd0af212356587 Mon Sep 17 00:00:00 2001
From: offsides <josh@honorablemenschen.com>
Date: Tue, 2 Jan 2024 17:21:37 -0500
Subject: [PATCH] Update mod_clamav.c (#19)
end_login is no longer defined in compat.h as of 1.3.9rc2, so the call needs to be replaced with pr_session_end
---
mod_clamav.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mod_clamav.c b/mod_clamav.c
index dcc4929..d39e347 100644
--- a/mod_clamav.c
+++ b/mod_clamav.c
@@ -239,7 +239,7 @@ static int clamavd_scan_stream(int sockd, const char *abs_filename,
buf = malloc(bufsz);
if (!buf) {
pr_log_pri(PR_LOG_CRIT, "Out of memory!");
- end_login(1);
+ pr_session_end(1);
}
/* send file contents using protocol defined by Clamd */