mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 12:35:08 -05:00
sched: don't allow SCH_RemoveTimeout() with invalid non-zero ID
This commit is contained in:
5
sched.c
5
sched.c
@@ -459,9 +459,12 @@ SCH_RemoveTimeout(SCH_TimeoutID id)
|
|||||||
/* Release memory back to the operating system */
|
/* Release memory back to the operating system */
|
||||||
release_tqe(ptr);
|
release_tqe(ptr);
|
||||||
|
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Catch calls with invalid non-zero ID */
|
||||||
|
assert(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|||||||
Reference in New Issue
Block a user