summaryrefslogtreecommitdiff
path: root/usr.sbin/route6d/route6d.c
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-10-25 23:03:08 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-10-25 23:03:08 +0000
commit39233eb456fe011d1ba9410ea9f1f86576ea9d24 (patch)
tree91d0145d59838dc50bf9295469c0c5ad594aab47 /usr.sbin/route6d/route6d.c
parent89149ca4eb8a6232d3450ae14b6c2d1e5e2858a9 (diff)
Sync surrounding code after reallocarray introduction.
No functional change.
Diffstat (limited to 'usr.sbin/route6d/route6d.c')
-rw-r--r--usr.sbin/route6d/route6d.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index a5c66249e16..f2d9937489f 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route6d.c,v 1.72 2015/10/25 22:57:09 jca Exp $ */
+/* $OpenBSD: route6d.c,v 1.73 2015/10/25 23:03:07 jca Exp $ */
/* $KAME: route6d.c,v 1.111 2006/10/25 06:38:13 jinmei Exp $ */
/*
@@ -3400,10 +3400,10 @@ setindex2ifc(int idx, struct ifc *ifcp)
if (n != nindex2ifc) {
p = reallocarray(index2ifc, nindex2ifc, sizeof(*index2ifc));
if (p == NULL) {
- fatal("realloc");
+ fatal("reallocarray");
/*NOTREACHED*/
}
- memset(p + n, 0, sizeof(*index2ifc) * (nindex2ifc - n));
+ memset(p + n, 0, (nindex2ifc - n) * sizeof(*index2ifc));
index2ifc = p;
}
index2ifc[idx] = ifcp;