openssl-util: avoid freeing invalid pointer

This commit is contained in:
David Tardon
2023-12-13 07:28:30 +08:00
committed by Mike Yuan
parent 026a8b022e
commit 38e1035bef
+1 -1
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);