From 02b3104215b64b60a586de25d16403f387cd880a Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Sun, 11 Oct 2009 14:44:40 +0800 Subject: [PATCH] Fix a memory corruption in parse_status_msg Signed-off-by: Vic Lee Signed-off-by: Andreas Schneider --- libssh/sftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }