components/krb5/patches/075-24751636.patch
changeset 7290 b85511c8850f
parent 7288 6fa98a77f4d9
child 7291 30f79f6e5421
equal deleted inserted replaced
7288:6fa98a77f4d9 7290:b85511c8850f
     1 #
       
     2 # Patch to fix a parfait complaint about use of unitilized variables (see bug
       
     3 # 24751636).  I have submitted a bug ticket to MIT (see 8501 Potential use of
       
     4 # uninitialized variable in kdc/main.c) but in the meantime we will patch this.
       
     5 #
       
     6 # Patch source: in-house
       
     7 #
       
     8 
       
     9 --- a/src/kdc/main.c
       
    10 +++ b/src/kdc/main.c
       
    11 @@ -656,6 +656,9 @@ initialize_realms(krb5_context kcontext, int argc, char **argv)
       
    12          hierarchy[1] = KRB5_CONF_HOST_BASED_SERVICES;
       
    13          if (krb5_aprof_get_string_all(aprof, hierarchy, &hostbased))
       
    14              hostbased = 0;
       
    15 +    } else {
       
    16 +        fprintf(stderr, _("KDC cannot initialize. Cannot get profile.\n"));
       
    17 +        exit(1);
       
    18      }
       
    19  
       
    20      if (default_udp_ports == 0) {