diff options
author | hasso <hasso> | 2005-09-01 17:52:33 +0000 |
---|---|---|
committer | hasso <hasso> | 2005-09-01 17:52:33 +0000 |
commit | aac372f4f5b617a579dafeab31fb486a5d69d65d (patch) | |
tree | 9aac3362db19f195238b8508761e82f2d6b8a370 /isisd/isis_adjacency.c | |
parent | deba35508e28a3861bb182218bb51af6769b2581 (diff) |
* 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.
Diffstat (limited to 'isisd/isis_adjacency.c')
-rw-r--r-- | isisd/isis_adjacency.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/isisd/isis_adjacency.c b/isisd/isis_adjacency.c index af4e963b..3d847732 100644 --- a/isisd/isis_adjacency.c +++ b/isisd/isis_adjacency.c @@ -54,8 +54,7 @@ adj_alloc (u_char * id) { struct isis_adjacency *adj; - adj = XMALLOC (MTYPE_ISIS_ADJACENCY, sizeof (struct isis_adjacency)); - memset (adj, 0, sizeof (struct isis_adjacency)); + adj = XCALLOC (MTYPE_ISIS_ADJACENCY, sizeof (struct isis_adjacency)); memcpy (adj->sysid, id, ISIS_SYS_ID_LEN); return adj; |