blob: 2087889ff04e4cb7a5b8c565a4129d4da94f00a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-ae,v 1.1 2005/05/28 14:15:23 adrianp Exp $
--- print-ldp.c.orig 2005-05-06 09:17:24.000000000 +0100
+++ print-ldp.c
@@ -326,6 +326,9 @@ ldp_print(register const u_char *pptr, r
EXTRACT_32BITS(&ldp_msg_header->id),
LDP_MASK_U_BIT(EXTRACT_16BITS(&ldp_msg_header->type)) ? "continue processing" : "ignore");
+ if (msg_len == 0) /* infinite loop protection */
+ break;
+
msg_tptr=tptr+sizeof(struct ldp_msg_header);
msg_tlen=msg_len-sizeof(struct ldp_msg_header)+4; /* Type & Length fields not included */
|