(krb5_parse_name): set *principal to NULL the first thing we do, so

that on failure its set to a known value


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17787 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-07-01 09:30:15 +00:00
parent f409403b7d
commit 706ef0ecd5

View File

@@ -110,6 +110,8 @@ krb5_parse_name(krb5_context context,
char c;
int got_realm = 0;
*principal = NULL;
/* count number of component */
ncomp = 1;
for(p = name; *p; p++){