From: Marc Horowitz Date: Thu, 22 Oct 1998 09:22:07 +0000 (+0000) Subject: if the caller to decrypt provides a larger-than-necessary buffer, X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=602bf66dab94103bc49a958ef2f04f4ad550839b;p=thirdparty%2Fkrb5.git if the caller to decrypt provides a larger-than-necessary buffer, deal. git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10982 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/old/decrypt.c b/src/lib/crypto/old/decrypt.c index d84eadfa41..894ed93fd6 100644 --- a/src/lib/crypto/old/decrypt.c +++ b/src/lib/crypto/old/decrypt.c @@ -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; }