krb5 commit: Fix recent change to kdcdefaults processing

Greg Hudson ghudson at mit.edu
Tue Jul 19 15:06:33 EDT 2016


https://github.com/krb5/krb5/commit/5eb0d447050c688b1003ad7d5cd0e2e733187298
commit 5eb0d447050c688b1003ad7d5cd0e2e733187298
Author: Greg Hudson <ghudson at mit.edu>
Date:   Tue Jul 19 12:46:37 2016 -0400

    Fix recent change to kdcdefaults processing
    
    When falling back to reading kdc_tcp_ports from [kdcdefaults], assign
    the result to the correct variable.
    
    ticket: 1093

 src/kdc/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/kdc/main.c b/src/kdc/main.c
index a6ca9d8..9ceb3a7 100644
--- a/src/kdc/main.c
+++ b/src/kdc/main.c
@@ -648,7 +648,7 @@ initialize_realms(krb5_context kcontext, int argc, char **argv)
         hierarchy[1] = KRB5_CONF_KDC_TCP_LISTEN;
         if (krb5_aprof_get_string(aprof, hierarchy, TRUE, &def_tcp_listen)) {
             hierarchy[1] = KRB5_CONF_KDC_TCP_PORTS;
-            if (krb5_aprof_get_string(aprof, hierarchy, TRUE, &def_udp_listen))
+            if (krb5_aprof_get_string(aprof, hierarchy, TRUE, &def_tcp_listen))
                 def_tcp_listen = NULL;
         }
         hierarchy[1] = KRB5_CONF_KDC_MAX_DGRAM_REPLY_SIZE;


More information about the cvs-krb5 mailing list