aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Lee <llyzs@163.com>2009-10-11 14:44:40 +0800
committerAndreas Schneider <mail@cynapses.org>2009-10-11 11:11:08 +0200
commit02b3104215b64b60a586de25d16403f387cd880a (patch)
tree7115f3af93f9b58ca82947e2c52ae54b4e19a167
parent26a5294116f3df17bbf9f90d88ed73b3db65a4f6 (diff)
downloadlibssh-02b3104215b64b60a586de25d16403f387cd880a.tar.gz
libssh-02b3104215b64b60a586de25d16403f387cd880a.tar.xz
libssh-02b3104215b64b60a586de25d16403f387cd880a.zip
Fix a memory corruption in parse_status_msg
Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Andreas Schneider <mail@cynapses.org>
-rw-r--r--libssh/sftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c
index cdeb9e20..46bcce32 100644
--- a/libssh/sftp.c
+++ b/libssh/sftp.c
@@ -733,7 +733,7 @@ static sftp_status_message parse_status_msg(sftp_message msg){
return NULL;
}
- status = malloc(sizeof(struct sftp_message_struct));
+ status = malloc(sizeof(struct sftp_status_message_struct));
if (status == NULL) {
return NULL;
}