24751636 Couple potential references to uninitialized variables in kdc/main.c
authorWill Fiveash <will.fiveash@oracle.com>
Fri, 04 Nov 2016 14:44:27 -0500
changeset 7247 595712971717
parent 7246 b3414fa83399
child 7248 6e3eadd7bb71
24751636 Couple potential references to uninitialized variables in kdc/main.c
components/krb5/patches/075-24751636.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/krb5/patches/075-24751636.patch	Fri Nov 04 14:44:27 2016 -0500
@@ -0,0 +1,20 @@
+#
+# Patch to fix a parfait complaint about use of unitilized variables (see bug
+# 24751636).  I have submitted a bug ticket to MIT (see 8501 Potential use of
+# uninitialized variable in kdc/main.c) but in the meantime we will patch this.
+#
+# Patch source: in-house
+#
+
+--- a/src/kdc/main.c
++++ b/src/kdc/main.c
[email protected]@ -656,6 +656,9 @@ initialize_realms(krb5_context kcontext, int argc, char **argv)
+         hierarchy[1] = KRB5_CONF_HOST_BASED_SERVICES;
+         if (krb5_aprof_get_string_all(aprof, hierarchy, &hostbased))
+             hostbased = 0;
++    } else {
++        fprintf(stderr, _("KDC cannot initialize. Cannot get profile.\n"));
++        exit(1);
+     }
+ 
+     if (default_udp_ports == 0) {