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:
committed by
Andreas Schneider
parent
26a5294116
commit
02b3104215
@@ -733,7 +733,7 @@ static sftp_status_message parse_status_msg(sftp_message msg){
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
status = malloc(sizeof(struct sftp_message_struct));
|
status = malloc(sizeof(struct sftp_status_message_struct));
|
||||||
if (status == NULL) {
|
if (status == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user