mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
* fix incorrect array sizing
--HG-- extra : convert_revision : e1322d52370db709625e024975f7c97fb8ed58c7
This commit is contained in:
parent
187a7dcfdc
commit
a75c71299b
@ -810,7 +810,7 @@ static void addchildpid(struct ChanSess *chansess, pid_t pid) {
|
|||||||
/* need to increase size */
|
/* need to increase size */
|
||||||
if (i == svr_ses.childpidsize) {
|
if (i == svr_ses.childpidsize) {
|
||||||
svr_ses.childpids = (struct ChildPid*)m_realloc(svr_ses.childpids,
|
svr_ses.childpids = (struct ChildPid*)m_realloc(svr_ses.childpids,
|
||||||
sizeof(struct ChildPid) * svr_ses.childpidsize+1);
|
sizeof(struct ChildPid) * (svr_ses.childpidsize+1));
|
||||||
svr_ses.childpidsize++;
|
svr_ses.childpidsize++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user