From: Frank Kardel Date: Thu, 25 May 2006 18:25:23 +0000 (+0000) Subject: refclock_parse.c: X-Git-Tag: NTP_4_2_1P255_RC~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9279f195a4ca0bd11ea5b13826279a690508d8e;p=thirdparty%2Fntp.git refclock_parse.c: bug #619 terminate parse io engine after de-registering from refclock io engine bk: 4475f693Lr-F8nbcbv2Emblih99gWA --- diff --git a/ntpd/refclock_parse.c b/ntpd/refclock_parse.c index cfa263f0c..ab541e006 100644 --- a/ntpd/refclock_parse.c +++ b/ntpd/refclock_parse.c @@ -1,7 +1,7 @@ /* - * /src/NTP/REPOSITORY/ntp4-dev/ntpd/refclock_parse.c,v 4.69 2006/05/25 17:28:02 kardel RELEASE_20060525_B + * /src/NTP/REPOSITORY/ntp4-dev/ntpd/refclock_parse.c,v 4.70 2006/05/25 18:20:50 kardel RELEASE_20060525_C * - * refclock_parse.c,v 4.69 2006/05/25 17:28:02 kardel RELEASE_20060525_B + * refclock_parse.c,v 4.70 2006/05/25 18:20:50 kardel RELEASE_20060525_C * * generic reference clock driver for several DCF/GPS/MSF/... receivers * @@ -9,7 +9,7 @@ * available and configured. Currently the STREAMS module * is only available for Suns running SunOS 4.x and SunOS5.x * - * Copyright (c) 1995-2005 by Frank Kardel ntp.org> + * Copyright (c) 1995-2006 by Frank Kardel ntp.org> * Copyright (c) 1989-1994 by Frank Kardel, Friedrich-Alexander Universität Erlangen-Nürnberg, Germany * * Redistribution and use in source and binary forms, with or without @@ -182,7 +182,7 @@ #include "ieee754io.h" #include "recvbuff.h" -static char rcsid[] = "refclock_parse.c,v 4.69 2006/05/25 17:28:02 kardel RELEASE_20060525_B"; +static char rcsid[] = "refclock_parse.c,v 4.70 2006/05/25 18:20:50 kardel RELEASE_20060525_C"; /**=========================================================================== ** external interface to ntp mechanism @@ -2601,14 +2601,14 @@ parse_shutdown( parse->parse_type->cl_end(parse); } - if (parse->binding) - PARSE_END(parse); - /* * Tell the I/O module to turn us off. We're history. */ io_closeclock(&parse->generic->io); + if (parse->binding) + PARSE_END(parse); + free_varlist(parse->kv); NLOG(NLOG_CLOCKINFO) /* conditional if clause for conditional syslog */ @@ -5681,6 +5681,11 @@ int refclock_parse_bs; * History: * * refclock_parse.c,v + * Revision 4.70 2006/05/25 18:20:50 kardel + * bug #619 + * terminate parse io engine after de-registering + * from refclock io engine + * * Revision 4.69 2006/05/25 17:28:02 kardel * complete refclock io structure initialization *before* inserting it into the * refclock input machine (avoids null pointer deref) (bug #619)