mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-10-31 23:10:31 +03:00
message: Use SSH_BUFFER_FREE()
Fixes T183 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -699,7 +699,7 @@ static ssh_buffer ssh_msg_userauth_build_digest(ssh_session session,
|
|||||||
}
|
}
|
||||||
rc = ssh_pki_export_pubkey_blob(msg->auth_request.pubkey, &str);
|
rc = ssh_pki_export_pubkey_blob(msg->auth_request.pubkey, &str);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
ssh_buffer_free(buffer);
|
SSH_BUFFER_FREE(buffer);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -718,7 +718,7 @@ static ssh_buffer ssh_msg_userauth_build_digest(ssh_session session,
|
|||||||
SSH_STRING_FREE(str);
|
SSH_STRING_FREE(str);
|
||||||
if (rc != SSH_OK) {
|
if (rc != SSH_OK) {
|
||||||
ssh_set_error_oom(session);
|
ssh_set_error_oom(session);
|
||||||
ssh_buffer_free(buffer);
|
SSH_BUFFER_FREE(buffer);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -895,7 +895,7 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_request){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
SSH_STRING_FREE(sig_blob);
|
SSH_STRING_FREE(sig_blob);
|
||||||
ssh_buffer_free(digest);
|
SSH_BUFFER_FREE(digest);
|
||||||
ssh_signature_free(sig);
|
ssh_signature_free(sig);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
SSH_LOG(
|
SSH_LOG(
|
||||||
|
|||||||
Reference in New Issue
Block a user