]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix recent change to kdcdefaults processing 486/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 19 Jul 2016 16:46:37 +0000 (12:46 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 19 Jul 2016 18:37:17 +0000 (14:37 -0400)
When falling back to reading kdc_tcp_ports from [kdcdefaults], assign
the result to the correct variable.

ticket: 1093

src/kdc/main.c

index a6ca9d8bcaa4e66485f23fbdae9d15168fc50628..9ceb3a74af622fbae037f1fada0e94b52861880d 100644 (file)
@@ -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;