summaryrefslogtreecommitdiffstats
path: root/pimd/pim_neighbor.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetwroks.com>2016-07-16 08:45:33 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:02 +0100
commit36d9e7dcea547443ef25e5a8d308691f50099568 (patch)
tree5704727446a96d84a08f1c3f5741c4efb8273b3c /pimd/pim_neighbor.c
parentpimd: Fix PACKETDUMP compile errors. (diff)
downloadfrr-36d9e7dcea547443ef25e5a8d308691f50099568.tar.xz
frr-36d9e7dcea547443ef25e5a8d308691f50099568.zip
pimd: Use XCALLOC instead of XMALLOC
Ensure that all data structures start out as 0 filled. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_neighbor.c')
-rw-r--r--pimd/pim_neighbor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_neighbor.c b/pimd/pim_neighbor.c
index 90fdc3547..749390595 100644
--- a/pimd/pim_neighbor.c
+++ b/pimd/pim_neighbor.c
@@ -298,9 +298,9 @@ static struct pim_neighbor *pim_neighbor_new(struct interface *ifp,
pim_ifp = ifp->info;
zassert(pim_ifp);
- neigh = XMALLOC(MTYPE_PIM_NEIGHBOR, sizeof(*neigh));
+ neigh = XCALLOC(MTYPE_PIM_NEIGHBOR, sizeof(*neigh));
if (!neigh) {
- zlog_err("%s: PIM XMALLOC(%zu) failure",
+ zlog_err("%s: PIM XCALLOC(%zu) failure",
__PRETTY_FUNCTION__, sizeof(*neigh));
return 0;
}