svn rev #21784: trunk/src/lib/krb5/krb/
ghudson@MIT.EDU
ghudson at MIT.EDU
Fri Jan 23 12:45:59 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21784
Commit By: ghudson
Log Message:
Always initialize the output parameter in krb5_parse_name and friends.
Changed Files:
U trunk/src/lib/krb5/krb/parse.c
Modified: trunk/src/lib/krb5/krb/parse.c
===================================================================
--- trunk/src/lib/krb5/krb/parse.c 2009-01-23 17:24:50 UTC (rev 21783)
+++ trunk/src/lib/krb5/krb/parse.c 2009-01-23 17:45:58 UTC (rev 21784)
@@ -82,6 +82,8 @@
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
More information about the cvs-krb5
mailing list