diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-10-23 12:48:40 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-10-23 12:48:40 +0200 |
commit | 110d201e026824a742950f0c04f3334638d2b09f (patch) | |
tree | cbd49179deb661f8e145e3d905847a6d443ba987 /libssh/sftp.c | |
parent | be4f695c5c0cb43ea8c5d0c303f0868844cfbaf4 (diff) | |
download | libssh-110d201e026824a742950f0c04f3334638d2b09f.tar.gz libssh-110d201e026824a742950f0c04f3334638d2b09f.tar.xz libssh-110d201e026824a742950f0c04f3334638d2b09f.zip |
fix stupid bug
Diffstat (limited to 'libssh/sftp.c')
-rw-r--r-- | libssh/sftp.c | 2 |
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); |