]> git.ipfire.org Git - thirdparty/chrony.git/commit
refclock: avoid reallocation of refclock instances
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 11 May 2016 14:31:51 +0000 (16:31 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 12 May 2016 11:27:46 +0000 (13:27 +0200)
commitd1f4e5876b55ca740276185a5e8364390275172a
treed2096abc6929402e07b9c11d14b724147c6caacd
parent71b7e689c058d4daa78342a4c9b01b88bf5eb56a
refclock: avoid reallocation of refclock instances

Change the array with refclock instances to store just pointers and
avoid reallocation of the instances. This fixes a bug with the SOCK
refclock, which uses the pointer to the instance in a file handler and
which was invalid when the instance was reallocated (after adding
another refclock).

The bug is from commit d92583ed330f4c1f5f29fc1fc7c01d2a19d12319.
refclock.c