libcrypto: Use SSH_STRING_FREE()

Fixes T183

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit 09dfda8489)
This commit is contained in:
Andreas Schneider
2019-10-28 12:25:30 +01:00
parent 5ae2a05ca1
commit ce045cf5ed

View File

@@ -738,7 +738,7 @@ ssh_string ssh_sexp_extract_mpi(const gcry_sexp_t sexp,
err = gcry_mpi_print(outformat, ssh_string_data(result), size, NULL, mpi);
if (err != 0) {
ssh_string_burn(result);
ssh_string_free(result);
SSH_STRING_FREE(result);
result = NULL;
goto fail;
}