author | Will Fiveash <will.fiveash@oracle.com> |
Fri, 04 Nov 2016 14:44:27 -0500 | |
changeset 7247 | 595712971717 |
permissions | -rw-r--r-- |
7247
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
1 |
# |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
2 |
# Patch to fix a parfait complaint about use of unitilized variables (see bug |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
3 |
# 24751636). I have submitted a bug ticket to MIT (see 8501 Potential use of |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
4 |
# uninitialized variable in kdc/main.c) but in the meantime we will patch this. |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
5 |
# |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
6 |
# Patch source: in-house |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
7 |
# |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
8 |
|
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
9 |
--- a/src/kdc/main.c |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
10 |
+++ b/src/kdc/main.c |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
11 |
@@ -656,6 +656,9 @@ initialize_realms(krb5_context kcontext, int argc, char **argv) |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
12 |
hierarchy[1] = KRB5_CONF_HOST_BASED_SERVICES; |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
13 |
if (krb5_aprof_get_string_all(aprof, hierarchy, &hostbased)) |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
14 |
hostbased = 0; |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
15 |
+ } else { |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
16 |
+ fprintf(stderr, _("KDC cannot initialize. Cannot get profile.\n")); |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
17 |
+ exit(1); |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
18 |
} |
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
19 |
|
595712971717
24751636 Couple potential references to uninitialized variables in kdc/main.c
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
20 |
if (default_udp_ports == 0) { |