]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
cryptostats cleanup from Dave Mills.
authorHarlan Stenn <stenn@ntp.org>
Tue, 21 Jan 2003 03:26:15 +0000 (22:26 -0500)
committerHarlan Stenn <stenn@ntp.org>
Tue, 21 Jan 2003 03:26:15 +0000 (22:26 -0500)
bk: 3e2cbdd7P7-Wsce0Degx3cMYHJ38Ng

ntpd/ntp_util.c

index 006f2bd09676c54d490bcdea4a4fee831a29c324..8d09de57ca27a127486cb2461bc2e70f83e1c5da 100644 (file)
@@ -418,6 +418,14 @@ stats_config(
                                rawstats.fp = NULL;
                                filegen_setup(&rawstats, now.l_ui);
                        }
+#ifdef OPENSSL
+                       if(cryptostats.prefix == &statsdir[0] &&
+                           cryptostats.fp != NULL) {
+                               fclose(cryptostats.fp);
+                               cryptostats.fp = NULL;
+                               filegen_setup(&cryptostats, now.l_ui);
+                       }
+#endif /* OPENSSL */
                }
                break;