diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-09-13 20:07:56 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-09-13 20:07:57 +0300 |
commit | 331f20d52df2fd5eb4bea4a9e14a368472f32819 (patch) | |
tree | 2aa5b04125bfde2d26ea07e9723f80251a8aea0f /csum-file.c | |
parent | c52a02a0f0025df0e83ba00dc469df0dc8838b5e (diff) | |
parent | e0b8c84240037a592c5bd5f18fc382a98a323bea (diff) |
Merge branch 'ew/hash-with-openssl-evp'
Fix-up new-ish code to support OpenSSL EVP API.
* ew/hash-with-openssl-evp:
treewide: fix various bugs w/ OpenSSL 3+ EVP API
Diffstat (limited to 'csum-file.c')
-rw-r--r-- | csum-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/csum-file.c b/csum-file.c index cd01713244..870748e016 100644 --- a/csum-file.c +++ b/csum-file.c @@ -207,7 +207,7 @@ int hashfile_truncate(struct hashfile *f, struct hashfile_checkpoint *checkpoint lseek(f->fd, offset, SEEK_SET) != offset) return -1; f->total = offset; - f->ctx = checkpoint->ctx; + the_hash_algo->clone_fn(&f->ctx, &checkpoint->ctx); f->offset = 0; /* hashflush() was called in checkpoint */ return 0; } |