[Git][NTPsec/ntpsec][master] Prevent use-after-free crash.
Eric S. Raymond
gitlab at mg.gitlab.com
Wed Nov 22 02:40:48 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
c24dbfc6 by Eric S. Raymond at 2017-11-21T21:40:16-05:00
Prevent use-after-free crash.
- - - - -
1 changed file:
- ntpd/refclock_pps.c
Changes:
=====================================
ntpd/refclock_pps.c
=====================================
--- a/ntpd/refclock_pps.c
+++ b/ntpd/refclock_pps.c
@@ -168,9 +168,9 @@ pps_shutdown(
struct ppsunit *up;
up = pp->unitptr;
- free(up);
if (up->fddev > 0)
close(up->fddev);
+ free(up);
}
/*
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c24dbfc6e1c0153c891f4ae3fb96c683e7e7de16
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c24dbfc6e1c0153c891f4ae3fb96c683e7e7de16
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171122/134b5d61/attachment.html>
More information about the vc
mailing list