diff options
author | Marc Horowitz <marc@mit.edu> | 1998-10-22 09:22:07 +0000 |
---|---|---|
committer | Marc Horowitz <marc@mit.edu> | 1998-10-22 09:22:07 +0000 |
commit | 602bf66dab94103bc49a958ef2f04f4ad550839b (patch) | |
tree | 3fa93237570f6290b3cffdb2e249c02802c3f788 | |
parent | c212b47ab88b62e5f1a4dc4239dbf2eaa5123dc2 (diff) | |
download | krb5-602bf66dab94103bc49a958ef2f04f4ad550839b.zip krb5-602bf66dab94103bc49a958ef2f04f4ad550839b.tar.gz krb5-602bf66dab94103bc49a958ef2f04f4ad550839b.tar.bz2 |
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
-rw-r--r-- | src/lib/crypto/old/decrypt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/crypto/old/decrypt.c b/src/lib/crypto/old/decrypt.c index d84eadf..894ed93 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; } |