krb5_merge_authdata should initialize output on failure
authorSam Hartman <hartmans@mit.edu>
Thu, 26 Feb 2009 20:32:35 +0000 (20:32 +0000)
committerSam Hartman <hartmans@mit.edu>
Thu, 26 Feb 2009 20:32:35 +0000 (20:32 +0000)
ticket: 6400

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22057 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/copy_auth.c

index 4946eca625caa508804cadbea5bfb3dc2445a744..0223983c8d9155cedf5949de8bb3ccfef40abac7 100644 (file)
@@ -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;