diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-02-08 00:15:54 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-02-08 00:15:54 +0000 |
commit | e820523cf5e03c4eb9e5ca70e735ed8e647e54ca (patch) | |
tree | 40fb379d5653217564d3ccb4ae328d91d7559588 /usr.sbin | |
parent | 574915f30af6e0ce7572084b8bd2a3d601d29396 (diff) |
correct size in ipv6 address comparison
found by "'&a->sin6_addr' too small (16 vs 28)" smatch error
ok jca@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ntpd/ntp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c index 6037c82ec57..a0984e94346 100644 --- a/usr.sbin/ntpd/ntp.c +++ b/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.172 2023/12/20 15:36:36 otto Exp $ */ +/* $OpenBSD: ntp.c,v 1.173 2024/02/08 00:15:53 jsg Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -534,7 +534,7 @@ inpool(struct sockaddr_storage *a, return 1; } else if (memcmp(&((struct sockaddr_in6 *)a)->sin6_addr, &((struct sockaddr_in6 *)&old[i])->sin6_addr, - sizeof(struct sockaddr_in6)) == 0) { + sizeof(struct in6_addr)) == 0) { return 1; } } |