summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2009-01-23 17:45:58 +0000
committerGreg Hudson <ghudson@mit.edu>2009-01-23 17:45:58 +0000
commit5513187c352d5abaaa8114e82c0552bde361415b (patch)
tree1be0332c972321e2b9cd5f0cc4dbbe34fc0cd10c /src
parentb03e9bad2d507501ccd4c64f3af27910cae32cc4 (diff)
downloadkrb5-5513187c352d5abaaa8114e82c0552bde361415b.tar.gz
krb5-5513187c352d5abaaa8114e82c0552bde361415b.tar.xz
krb5-5513187c352d5abaaa8114e82c0552bde361415b.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/krb/parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/parse.c b/src/lib/krb5/krb/parse.c
index 5c705490d3..87548097a5 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