mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
www-apache/mod_auth_kerb: add use-after-free patch
Closes: https://bugs.gentoo.org/673066 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
59646ae0e9
commit
433bedfe25
@ -0,0 +1,22 @@
|
||||
https://sources.debian.org/src/libapache-mod-auth-kerb/5.4-2.5/debian/patches/mod_auth_kerb-krb5_kt_close.patch/
|
||||
https://bugs.gentoo.org/673066
|
||||
|
||||
Description: fix use after free in authenticate_user_krb5pwd()
|
||||
Origin: https://sourceforge.net/p/modauthkerb/bugs/61/attachment/mod_auth_kerb-krb5_kt_close.patch
|
||||
Bug: https://sourceforge.net/p/modauthkerb/bugs/61/
|
||||
Bug-Debian: https://bugs.debian.org/934043
|
||||
Author: Johan Ymerson (https://sourceforge.net/u/ymerson/)
|
||||
--- a/src/mod_auth_kerb.c
|
||||
+++ b/src/mod_auth_kerb.c
|
||||
@@ -799,11 +799,9 @@
|
||||
"failed to verify krb5 credentials: %s",
|
||||
krb5_get_err_text(context, ret));
|
||||
krb5_kt_end_seq_get(context, keytab, &cursor);
|
||||
- krb5_kt_close(context, keytab);
|
||||
goto end;
|
||||
}
|
||||
krb5_kt_end_seq_get(context, keytab, &cursor);
|
||||
- krb5_kt_close(context, keytab);
|
||||
}
|
||||
else {
|
||||
if ((ret = verify_krb5_init_creds(r, context, &creds, server, keytab))) {
|
||||
@ -37,6 +37,8 @@ PATCHES=(
|
||||
|
||||
# bug #830208
|
||||
"${FILESDIR}"/${P}-api-change-krb5.patch
|
||||
# bug #673066
|
||||
"${FILESDIR}"/${P}-krb5pwd-double-free.patch
|
||||
)
|
||||
|
||||
# Work around Bug #616612
|
||||
@ -55,7 +57,8 @@ src_compile() {
|
||||
|
||||
src_install() {
|
||||
apache-module_src_install
|
||||
dotmpfiles "${FILESDIR}/${PN}.conf"
|
||||
|
||||
dotmpfiles "${FILESDIR}"/${PN}.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
Loading…
x
Reference in New Issue
Block a user