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

Fix a memory corruption in parse_status_msg

Signed-off-by: Vic Lee <llyzs@163.com>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
This commit is contained in:
Vic Lee
2009-10-11 14:44:40 +08:00
committed by Andreas Schneider
parent 26a5294116
commit 02b3104215

View File

@@ -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;
}