diff options
Diffstat (limited to 'net/tcpdump/patches/patch-af')
-rw-r--r-- | net/tcpdump/patches/patch-af | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/tcpdump/patches/patch-af b/net/tcpdump/patches/patch-af new file mode 100644 index 00000000000..b1ebead6b4f --- /dev/null +++ b/net/tcpdump/patches/patch-af @@ -0,0 +1,24 @@ +$NetBSD: patch-af,v 1.1 2005/05/28 14:15:23 adrianp Exp $ + +--- print-rsvp.c.orig 2004-03-24 04:01:08.000000000 +0000 ++++ print-rsvp.c +@@ -875,10 +875,17 @@ rsvp_print(register const u_char *pptr, + switch(rsvp_obj_ctype) { + case RSVP_CTYPE_IPV4: + while(obj_tlen >= 4 ) { +- printf("\n\t Subobject Type: %s", ++ printf("\n\t Subobject Type: %s, length %u", + tok2str(rsvp_obj_xro_values, + "Unknown %u", +- RSVP_OBJ_XRO_MASK_SUBOBJ(*obj_tptr))); ++ RSVP_OBJ_XRO_MASK_SUBOBJ(*obj_tptr)), ++ *(obj_tptr+1)); ++ ++ if (*(obj_tptr+1) == 0) { /* prevent infinite loops */ ++ printf("\n\t ERROR: zero length ERO subtype"); ++ break; ++ } ++ + switch(RSVP_OBJ_XRO_MASK_SUBOBJ(*obj_tptr)) { + case RSVP_OBJ_XRO_IPV4: + printf(", %s, %s/%u, Flags: [%s]", |