X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/11f73ad248fa22461ca040baa8dc94b864509efa..4b2804bffdbbf5b32cbb9f3fbfaf56001203f34b:/print-juniper.c diff --git a/print-juniper.c b/print-juniper.c index 94151c81..2fc5bea6 100644 --- a/print-juniper.c +++ b/print-juniper.c @@ -15,6 +15,8 @@ * Original code by Hannes Gredler (hannes@juniper.net) */ +/* \summary: DLT_JUNIPER_* printers */ + #ifndef lint #else __RCSID("NetBSD: print-juniper.c,v 1.3 2007/07/25 06:31:32 dogcow Exp "); @@ -26,6 +28,8 @@ __RCSID("NetBSD: print-juniper.c,v 1.3 2007/07/25 06:31:32 dogcow Exp "); #include +#include + #include "netdissect.h" #include "addrtoname.h" #include "extract.h" @@ -817,6 +821,7 @@ juniper_mfr_print(netdissect_options *ndo, { struct juniper_l2info_t l2info; + memset(&l2info, 0, sizeof(l2info)); l2info.pictype = DLT_JUNIPER_MFR; if (juniper_parse_header(ndo, p, h, &l2info) == 0) return l2info.header_len;