]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Problem deleting keys when rereading them from file.
authorPeter Rosin <peda@lysator.liu.se>
Mon, 4 Aug 2003 12:02:44 +0000 (14:02 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Mon, 4 Aug 2003 12:02:44 +0000 (14:02 +0200)
- Don't crash on odd number of keys in one hash.
- Delete all keys, not just every other key.

bk: 3f2e4b64rebZ3GLrWch9O3IX2QUnzA

libntp/authkeys.c

index 55e6c6e84a990adc5c581469e3eeb5e397b0c403..7b103e8a329190304e2472c384e281c793887d84 100644 (file)
@@ -389,7 +389,6 @@ auth_delkeys(void)
                                authnumfreekeys++;
                                sk = *skp;
                        }
-                       sk = sk->next;
                }
        }
 }