]> git.ipfire.org Git - thirdparty/chrony.git/commit
client: fix sizeof in open_unix_socket()
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 25 Aug 2025 14:30:39 +0000 (16:30 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 26 Aug 2025 07:59:37 +0000 (09:59 +0200)
commit028944299868615fdf24f89298745e910c231f4a
tree0d52029e38717d059edafb922e5136b7b65f2bb9
parente9848c017617f1e8a4ecb218c3784e8dca786f4e
client: fix sizeof in open_unix_socket()

Fix one of the sizeofs in open_unix_socket() to correctly specify
sock_dir2 instead of sock_dir1. They have the same size, but don't rely
on that.

Fixes: 90d808ed2897 ("client: mitigate unsafe permissions change on chronyc socket")
client.c