From: Sam Hartman Date: Thu, 26 Feb 2009 20:32:35 +0000 (+0000) Subject: krb5_merge_authdata should initialize output on failure X-Git-Tag: krb5-1.8-alpha1~612 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=689c43caa81f72f6aac9ad79cead25d320db2327;p=krb5.git krb5_merge_authdata should initialize output on failure ticket: 6400 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22057 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/copy_auth.c b/src/lib/krb5/krb/copy_auth.c index 4946eca62..0223983c8 100644 --- a/src/lib/krb5/krb/copy_auth.c +++ b/src/lib/krb5/krb/copy_auth.c @@ -84,6 +84,7 @@ krb5_merge_authdata(krb5_context context, krb5_authdata *const *inauthdat1, krb5 krb5_authdata ** tempauthdat; register unsigned int nelems = 0, nelems2 = 0; + *outauthdat = NULL; if (!inauthdat1 && !inauthdat2) { *outauthdat = 0; return 0;