From aa5ac80337dca8f9034bc889d85f9e333b998127 Mon Sep 17 00:00:00 2001 From: gonzalef Date: Tue, 28 Apr 2020 18:02:34 +0200 Subject: [PATCH] concat hash no realloc --- src/hash.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hash.c b/src/hash.c index 61f06f9..c2324b2 100644 --- a/src/hash.c +++ b/src/hash.c @@ -58,6 +58,5 @@ void concat_data(pub_data *data, unsigned char *buf) { // Concat hash2 to hash1 (hash1 is modified) void concat_hash(unsigned char *hash1, unsigned char *hash2, size_t size) { - hash1 = (unsigned char*) realloc(hash1, size + 16); memcpy(hash1+size, hash2, 16); }