bk: 4a39f2bdOkqBaJuNOBq5q6TLc1Z9sw
+* [Bug 1229] autokey segfaults in cert_install().
(4.2.5p181) 2009/06/06 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 1206] Required compiler changes for Windows
* [Bug 1084] PPSAPI for ntpd on Windows with DLL backends
struct peer *peer /* peer structure */
)
{
- struct cert_info *cp, *xp, *yp, **zp;
+ struct cert_info *cp, *xp, **zp;
/*
* Parse and validate the signed certificate. If valid,
ntohl(xp->cert.fstamp)) {
cert_free(cp);
cp = xp;
- break;
+ } else {
+ *zp = xp->link;
+ cert_free(xp);
+ xp = NULL;
}
- yp = xp;
- xp = xp->link;
- *zp = xp;
- cert_free(yp);
- } else {
- zp = &xp->link;
+ break;
}
+ zp = &xp->link;
}
if (xp == NULL) {
cp->link = cinfo;