(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:
@@ -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++){
|
||||
|
Reference in New Issue
Block a user