]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
if the caller to decrypt provides a larger-than-necessary buffer,
authorMarc Horowitz <marc@mit.edu>
Thu, 22 Oct 1998 09:22:07 +0000 (09:22 +0000)
committerMarc Horowitz <marc@mit.edu>
Thu, 22 Oct 1998 09:22:07 +0000 (09:22 +0000)
deal.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10982 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/old/decrypt.c

index d84eadfa41de36da35d81113205e5cd61bdfd301..894ed93fd6fbe6ca2e3b004e2ed254490a3c547a 100644 (file)
@@ -41,7 +41,10 @@ krb5_old_decrypt(enc, hash, key, usage, ivec, input, arg_output)
 
        alloced = 1;
     } else {
-       output = *arg_output;
+       output.length = input->length;
+
+       output.data = arg_output->data;
+
        alloced = 0;
     }