]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ChangeLog, ntp-genkeys.c:
authorHarlan Stenn <stenn@ntp.org>
Sat, 19 Aug 2000 00:29:56 +0000 (00:29 -0000)
committerHarlan Stenn <stenn@ntp.org>
Sat, 19 Aug 2000 00:29:56 +0000 (00:29 -0000)
  * util/ntp-genkeys.c (main): Don't call fclose if stream is NULL.

bk: 399dd504fjE0TQN-n2E0nF-sHS32Eg

ChangeLog
util/ntp-genkeys.c

index d65a0f10b01802690f7cf9ec6d2ef155cc87013a..4105244840965ea6936149bb979444d7e47ff887 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-08-18  Harlan Stenn  <stenn@whimsy.udel.edu>
+
+       * util/ntp-genkeys.c (main): Don't call fclose if stream is NULL.
+
 2000-08-17  Harlan Stenn  <stenn@whimsy.udel.edu>
 
        * html/driver35.htm: 
index 2bb24480c0876a250c00c18549bc220e95922f6e..20d97d6a0658f3169651404a9fba34bef5b1e5f3 100644 (file)
@@ -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 */