mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-12 15:41:16 +03:00
server: Use SSH_STRING_FREE()
Fixes T183 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -318,7 +318,7 @@ ssh_get_key_params(ssh_session session,
|
|||||||
}
|
}
|
||||||
|
|
||||||
rc = ssh_dh_import_next_pubkey_blob(session, pubkey_blob);
|
rc = ssh_dh_import_next_pubkey_blob(session, pubkey_blob);
|
||||||
ssh_string_free(pubkey_blob);
|
SSH_STRING_FREE(pubkey_blob);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
ssh_set_error(session,
|
ssh_set_error(session,
|
||||||
SSH_FATAL,
|
SSH_FATAL,
|
||||||
@@ -1032,14 +1032,14 @@ int ssh_message_auth_reply_pk_ok_simple(ssh_message msg) {
|
|||||||
|
|
||||||
ret = ssh_pki_export_pubkey_blob(msg->auth_request.pubkey, &pubkey_blob);
|
ret = ssh_pki_export_pubkey_blob(msg->auth_request.pubkey, &pubkey_blob);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
ssh_string_free(algo);
|
SSH_STRING_FREE(algo);
|
||||||
return SSH_ERROR;
|
return SSH_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = ssh_message_auth_reply_pk_ok(msg, algo, pubkey_blob);
|
ret = ssh_message_auth_reply_pk_ok(msg, algo, pubkey_blob);
|
||||||
|
|
||||||
ssh_string_free(algo);
|
SSH_STRING_FREE(algo);
|
||||||
ssh_string_free(pubkey_blob);
|
SSH_STRING_FREE(pubkey_blob);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user