From: Ken Raeburn Date: Thu, 2 Nov 2006 03:47:34 +0000 (+0000) Subject: * tcl_kadm5.c (parse_principal_ent, parse_policy_ent): Don't pass back an X-Git-Tag: krb5-1.7-alpha1~1469 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=56008f41ddfd51b0a0e0d4d33128519a136d89dc;p=krb5.git * tcl_kadm5.c (parse_principal_ent, parse_policy_ent): Don't pass back an 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 --- diff --git a/src/kadmin/testing/util/tcl_kadm5.c b/src/kadmin/testing/util/tcl_kadm5.c index fb6466db2..4eb528386 100644 --- a/src/kadmin/testing/util/tcl_kadm5.c +++ b/src/kadmin/testing/util/tcl_kadm5.c @@ -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; diff --git a/src/kadmin/testing/util/tcl_ovsec_kadm.c b/src/kadmin/testing/util/tcl_ovsec_kadm.c index 7e04f04e9..fa91a23bf 100644 --- a/src/kadmin/testing/util/tcl_ovsec_kadm.c +++ b/src/kadmin/testing/util/tcl_ovsec_kadm.c @@ -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;