* tcl_kadm5.c (parse_principal_ent, parse_policy_ent): Don't pass back an
authorKen Raeburn <raeburn@mit.edu>
Thu, 2 Nov 2006 03:47:34 +0000 (03:47 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 2 Nov 2006 03:47:34 +0000 (03:47 +0000)
uninitialized pointer in error case.
* tcl_ovsec_kadm.c (parse_principal_ent, parse_policy_ent): Likewise.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18761 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/testing/util/tcl_kadm5.c
src/kadmin/testing/util/tcl_ovsec_kadm.c

index fb6466db2f18ed3015ee21004b97255b5dd11acc..4eb5283865c0a2a68d74044ddb9253ec19627c0d 100644 (file)
@@ -1130,7 +1130,7 @@ finished:
 static int parse_principal_ent(Tcl_Interp *interp, char *list,
                               kadm5_principal_ent_t *out_princ)
 {
-     kadm5_principal_ent_t princ;
+     kadm5_principal_ent_t princ = 0;
      krb5_error_code krb5_ret;
      int tcl_ret;
      int argc;
@@ -1383,7 +1383,7 @@ static Tcl_DString *unparse_policy_ent(kadm5_policy_ent_t policy)
 static int parse_policy_ent(Tcl_Interp *interp, char *list,
                            kadm5_policy_ent_t *out_policy)
 {
-     kadm5_policy_ent_t policy;
+     kadm5_policy_ent_t policy = 0;
      int tcl_ret;
      int argc;
      char **argv;
index 7e04f04e9cdc6b98cde88f5cb9c800ec3a9b9051..fa91a23bf98a32ca5518d0fb3db05d6f2c774b5b 100644 (file)
@@ -654,7 +654,7 @@ static Tcl_DString *unparse_principal_ent(ovsec_kadm_principal_ent_t princ)
 static int parse_principal_ent(Tcl_Interp *interp, char *list,
                               ovsec_kadm_principal_ent_t *out_princ)
 {
-     ovsec_kadm_principal_ent_t princ;
+     ovsec_kadm_principal_ent_t princ = 0;
      krb5_error_code krb5_ret;
      int tcl_ret;
      int argc;
@@ -839,7 +839,7 @@ static Tcl_DString *unparse_policy_ent(ovsec_kadm_policy_ent_t policy)
 static int parse_policy_ent(Tcl_Interp *interp, char *list,
                            ovsec_kadm_policy_ent_t *out_policy)
 {
-     ovsec_kadm_policy_ent_t policy;
+     ovsec_kadm_policy_ent_t policy = 0;
      int tcl_ret;
      int argc;
      char **argv;