mirror of
https://github.com/clearml/dropbear
synced 2025-03-04 11:09:19 +00:00
make code clearer and more robust (from Klocwork)
--HG-- extra : convert_revision : 397b243ca9ec623ded7b5b93e115dc460527acca
This commit is contained in:
parent
ee6f01918c
commit
20fb9ea351
@ -100,7 +100,7 @@ static void sesssigchild_handler(int UNUSED(dummy)) {
|
||||
|
||||
/* If the pid wasn't matched, then we might have hit the race mentioned
|
||||
* above. So we just store the info for the parent to deal with */
|
||||
if (i == svr_ses.childpidsize) {
|
||||
if (exit == NULL) {
|
||||
exit = &svr_ses.lastexit;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user