]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3096. [bug] Set KRB5_KTNAME before calling log_cred() in
authorMark Andrews <marka@isc.org>
Thu, 7 Apr 2011 23:07:37 +0000 (23:07 +0000)
committerMark Andrews <marka@isc.org>
Thu, 7 Apr 2011 23:07:37 +0000 (23:07 +0000)
                        dst_gssapi_acceptctx(). [RT #24004]

CHANGES
lib/dns/gssapictx.c

diff --git a/CHANGES b/CHANGES
index cced3920504d8b221553338d2060c121023bacdc..a0d5f8df46d93162cad95d84486027100bef0707 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3096.  [bug]           Set KRB5_KTNAME before calling log_cred() in
+                       dst_gssapi_acceptctx(). [RT #24004]
+
 3095.  [bug]           Handle isolated reserved ports in the port range.
                        [RT #23957]
 
index 744f5b77a4676e59962052bbdc8c91a577682a60..f5dfdbfdb0a654709da677f3f56536a07a3d432c 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: gssapictx.c,v 1.12.118.7 2011/03/28 23:45:57 tbox Exp $ */
+/* $Id: gssapictx.c,v 1.12.118.8 2011/04/07 23:07:37 marka Exp $ */
 
 #include <config.h>
 
@@ -617,8 +617,6 @@ dst_gssapi_acceptctx(gss_cred_id_t cred,
 
        REQUIRE(outtoken != NULL && *outtoken == NULL);
 
-       log_cred(cred);
-
        REGION_TO_GBUFFER(*intoken, gintoken);
 
        if (*ctxout == NULL)
@@ -626,6 +624,8 @@ dst_gssapi_acceptctx(gss_cred_id_t cred,
        else
                context = *ctxout;
 
+       log_cred(cred);
+
        gret = gss_accept_sec_context(&minor, &context, cred, &gintoken,
                                      GSS_C_NO_CHANNEL_BINDINGS, &gname,
                                      NULL, &gouttoken, NULL, NULL, NULL);