[ntpsec commit] Forward-port fix for [Bug 2867] ntpd with autokey active crashed by 'ntpq -crv'.

Eric S. Raymond esr at ntpsec.org
Thu Oct 22 21:02:46 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    9ee03b787be49e1f66d93be9134dcf21cc6bdcee
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=9ee03b787be49e1f66d93be9134dcf21cc6bdcee

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Thu Oct 22 17:02:16 2015 -0400

Forward-port fix for [Bug 2867] ntpd with autokey active crashed by 'ntpq -crv'.

---

 NEWS               | 1 +
 ntpd/ntp_control.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 7d3f985..5bb74dd 100644
--- a/NEWS
+++ b/NEWS
@@ -17,5 +17,6 @@ on user-visible changes.
   later fixes for parser support and reporting leap smear in the REFID.
 * [Bug 2859] Improve raw DCF77 robustness decoding.  Frank Kardel.
 * [Bug 2860] ntpq ifstats sanity check is too stringent.  Frank Kardel.
+* [Bug 2867] ntpd with autokey active crashed by 'ntpq -crv'
 
 // end
diff --git a/ntpd/ntp_control.c b/ntpd/ntp_control.c
index e9f69f4..f0b1630 100644
--- a/ntpd/ntp_control.c
+++ b/ntpd/ntp_control.c
@@ -2646,9 +2646,9 @@ ctl_putpeer(
 			ctl_putstr(peer_var[id].text, p->ident,
 			    strlen(p->ident));
 		break;
-
-
 #endif	/* ENABLE_AUTOKEY */
+	default:
+		break;
 	}
 }
 



More information about the vc mailing list