summaryrefslogtreecommitdiff
path: root/libntp/authkeys.c
diff options
context:
space:
mode:
Diffstat (limited to 'libntp/authkeys.c')
-rw-r--r--libntp/authkeys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libntp/authkeys.c b/libntp/authkeys.c
index 51337d5c4f6f1..b2ff410cd4768 100644
--- a/libntp/authkeys.c
+++ b/libntp/authkeys.c
@@ -250,7 +250,7 @@ auth_moremem(
i = (keycount > 0)
? keycount
: MEMINC;
- sk = emalloc_zero(i * sizeof(*sk) + MOREMEM_EXTRA_ALLOC);
+ sk = eallocarrayxz(i, sizeof(*sk), MOREMEM_EXTRA_ALLOC);
#ifdef DEBUG
base = sk;
#endif