From 110d201e026824a742950f0c04f3334638d2b09f Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Fri, 23 Oct 2009 12:48:40 +0200 Subject: fix stupid bug --- libssh/sftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh') diff --git a/libssh/sftp.c b/libssh/sftp.c index 34a0aee5..bc5e6379 100644 --- a/libssh/sftp.c +++ b/libssh/sftp.c @@ -748,7 +748,7 @@ static sftp_status_message parse_status_msg(sftp_message msg){ } status->error = 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){ /* These are mandatory from version 3 */ string_free(status->error); -- cgit v1.2.3