aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-10-23 12:48:40 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-10-23 12:48:40 +0200
commit110d201e026824a742950f0c04f3334638d2b09f (patch)
treecbd49179deb661f8e145e3d905847a6d443ba987 /libssh
parentbe4f695c5c0cb43ea8c5d0c303f0868844cfbaf4 (diff)
downloadlibssh-110d201e026824a742950f0c04f3334638d2b09f.tar.gz
libssh-110d201e026824a742950f0c04f3334638d2b09f.tar.xz
libssh-110d201e026824a742950f0c04f3334638d2b09f.zip
fix stupid bug
Diffstat (limited to 'libssh')
-rw-r--r--libssh/sftp.c2
1 files changed, 1 insertions, 1 deletions
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);