From: Harlan Stenn Date: Sat, 19 Aug 2000 00:29:56 +0000 (-0000) Subject: ChangeLog, ntp-genkeys.c: X-Git-Tag: NTP_4_0_99_M~191 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0859216b4df38e7318e0ceecf284890ca0d173ca;p=thirdparty%2Fntp.git ChangeLog, ntp-genkeys.c: * util/ntp-genkeys.c (main): Don't call fclose if stream is NULL. bk: 399dd504fjE0TQN-n2E0nF-sHS32Eg --- diff --git a/ChangeLog b/ChangeLog index d65a0f10b0..4105244840 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-08-18 Harlan Stenn + + * util/ntp-genkeys.c (main): Don't call fclose if stream is NULL. + 2000-08-17 Harlan Stenn * html/driver35.htm: diff --git a/util/ntp-genkeys.c b/util/ntp-genkeys.c index 2bb24480c0..20d97d6a06 100644 --- a/util/ntp-genkeys.c +++ b/util/ntp-genkeys.c @@ -887,7 +887,7 @@ main( i, md5key); } } - fclose(str); + if (str) fclose(str); cleanlinks(f1_keys, f2_keys, f3_keys); } @@ -934,7 +934,7 @@ main( encoded_key[temp] = '\0'; fprintf(str, "%d %s\n", modulus, encoded_key); } - fclose(str); + if (str) fclose(str); cleanlinks(f1_privatekey, f2_privatekey, f3_privatekey); /* @@ -953,7 +953,7 @@ main( encoded_key[temp] = '\0'; fprintf(str, "%d %s\n", modulus, encoded_key); } - fclose(str); + if (str) fclose(str); cleanlinks(f1_publickey, f2_publickey, f3_publickey); } #endif /* PUBKEY */ @@ -1007,7 +1007,7 @@ main( fprintf(str, "%d %s\n", dh_params.generatorLen, encoded_key); } - fclose(str); + if (str) fclose(str); cleanlinks(f1_dhparms, f2_dhparms, f3_dhparms); } #endif /* PUBKEY */