From: Joel Rosdahl Date: Wed, 10 Apr 2019 20:19:32 +0000 (+0200) Subject: Don’t finalize hash buffer state in the unify mode code X-Git-Tag: v3.7~30 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=138a9d91e44a53a6add43c0786988c91a6c2510b;p=thirdparty%2Fccache.git Don’t finalize hash buffer state in the unify mode code The hash state needs to stay unfinalized since more bytes are fed into it later. Related to issue #374. --- diff --git a/src/unify.c b/src/unify.c index 7e2cd4775..4b727842f 100644 --- a/src/unify.c +++ b/src/unify.c @@ -1,5 +1,5 @@ // Copyright (C) 2002 Andrew Tridgell -// Copyright (C) 2009-2018 Joel Rosdahl +// Copyright (C) 2009-2019 Joel Rosdahl // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free @@ -117,7 +117,6 @@ pushchar(struct hash *hash, unsigned char c) } len = 0; } - hash_buffer(hash, NULL, 0); return; }