* isis_adjacency.c, isis_lsp.c, isisd.c: Replace XMALLOC && memset
with XCALLOC.
* isis_lsp.c (lsp_build_pseudo): Fix adding ES neighbour.
* isis_tlv.c: More compact free_tlvs() function.
* isis_lsp.c (lsp_build_nonpseudo) : Try to fix one more regression
introduced by stream cleanup. Seek enp to the right place before
starting to fill stream with TLVs.
diff --git a/isisd/isisd.c b/isisd/isisd.c
index 5ab1f27..e6679cf 100644
--- a/isisd/isisd.c
+++ b/isisd/isisd.c
@@ -65,8 +65,7 @@
void
isis_new (unsigned long process_id)
{
- isis = XMALLOC (MTYPE_ISIS, sizeof (struct isis));
- bzero (isis, sizeof (struct isis));
+ isis = XCALLOC (MTYPE_ISIS, sizeof (struct isis));
/*
* Default values
*/
@@ -91,8 +90,7 @@
{
struct isis_area *area;
- area = XMALLOC (MTYPE_ISIS_AREA, sizeof (struct isis_area));
- memset (area, 0, sizeof (struct isis_area));
+ area = XCALLOC (MTYPE_ISIS_AREA, sizeof (struct isis_area));
/*
* The first instance is level-1-2 rest are level-1, unless otherwise