From: Greg Hudson Date: Fri, 23 Jan 2009 17:45:58 +0000 (+0000) Subject: Always initialize the output parameter in krb5_parse_name and friends X-Git-Tag: krb5-1.7-alpha1~46 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5513187c352d5abaaa8114e82c0552bde361415b;p=krb5.git Always initialize the output parameter in krb5_parse_name and friends git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21784 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/parse.c b/src/lib/krb5/krb/parse.c index 5c705490d..87548097a 100644 --- a/src/lib/krb5/krb/parse.c +++ b/src/lib/krb5/krb/parse.c @@ -82,6 +82,8 @@ k5_parse_name(krb5_context context, const char *name, unsigned int enterprise = (flags & KRB5_PRINCIPAL_PARSE_ENTERPRISE); int first_at; + *nprincipal = NULL; + /* * Pass 1. Find out how many components there are to the name, * and get string sizes for the first FCOMPNUM components. For