found by "'&a->sin6_addr' too small (16 vs 28)" smatch error
ok jca@
-/* $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>
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;
}
}