1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

fix stupid bug

This commit is contained in:
Aris Adamantiadis
2009-10-23 12:48:40 +02:00
parent be4f695c5c
commit 110d201e02

View File

@@ -748,7 +748,7 @@ static sftp_status_message parse_status_msg(sftp_message msg){
} }
status->error = buffer_get_ssh_string(msg->payload); status->error = buffer_get_ssh_string(msg->payload);
status->lang = buffer_get_ssh_string(msg->payload); status->lang = buffer_get_ssh_string(msg->payload);
if(status->error != NULL || status->lang != NULL){ if(status->error == NULL || status->lang == NULL){
if(msg->sftp->version >=3){ if(msg->sftp->version >=3){
/* These are mandatory from version 3 */ /* These are mandatory from version 3 */
string_free(status->error); string_free(status->error);