From 5513187c352d5abaaa8114e82c0552bde361415b Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 23 Jan 2009 17:45:58 +0000 Subject: [PATCH] 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 --- src/lib/krb5/krb/parse.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.26.2