openssl-util: avoid freeing invalid pointer

This commit is contained in:
David Tardon
2023-12-12 15:47:33 +01:00
committed by Mike Yuan
parent 026a8b022e
commit 38e1035bef

View File

@@ -1109,7 +1109,7 @@ int string_hashsum(
_cleanup_free_ void *hash = NULL;
size_t hash_size;
_cleanup_free_ char *enc;
_cleanup_free_ char *enc = NULL;
int r;
assert(s || len == 0);