summaryrefslogtreecommitdiff
path: root/www-apache/mod_auth_kerb/files/mod_auth_kerb-5.4-krb5pwd-double-free.patch
blob: aa8ced49c1036b94dd3497e32e843e4158b2a3a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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))) {