mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
session: 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 5e6cb6891f)
This commit is contained in:
@@ -1025,7 +1025,7 @@ int ssh_get_pubkey_hash(ssh_session session, unsigned char **hash)
|
|||||||
}
|
}
|
||||||
|
|
||||||
md5_update(ctx, ssh_string_data(pubkey_blob), ssh_string_len(pubkey_blob));
|
md5_update(ctx, ssh_string_data(pubkey_blob), ssh_string_len(pubkey_blob));
|
||||||
ssh_string_free(pubkey_blob);
|
SSH_STRING_FREE(pubkey_blob);
|
||||||
md5_final(h, ctx);
|
md5_final(h, ctx);
|
||||||
|
|
||||||
*hash = h;
|
*hash = h;
|
||||||
@@ -1214,7 +1214,7 @@ int ssh_get_publickey_hash(const ssh_key key,
|
|||||||
*hash = h;
|
*hash = h;
|
||||||
rc = 0;
|
rc = 0;
|
||||||
out:
|
out:
|
||||||
ssh_string_free(blob);
|
SSH_STRING_FREE(blob);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user