diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2025-03-24 10:29:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-24 10:29:36 -0400 |
| commit | d736350986e4318e47bb97e731fd13a4a627acec (patch) | |
| tree | 975760a48781eddf02b5107abae2aedd8642ef7f | |
| parent | 927e2a9c81b638c035a834a3c5c693c93e7bfce7 (diff) | |
| parent | 7c48a717f00b0bdeec7c0f10f02515b705f3e060 (diff) | |
Merge pull request #18473 from zmw12306/Request-TLV
babeld: Missing Validation for AE=0 and Plen!=0
| -rw-r--r-- | babeld/message.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/babeld/message.c b/babeld/message.c index 5a33d5c288..fabd72fda3 100644 --- a/babeld/message.c +++ b/babeld/message.c @@ -706,6 +706,11 @@ parse_packet(const unsigned char *from, struct interface *ifp, "Received source-specific wildcard request."); goto done; } + if(message[3] != 0) { + flog_err(EC_BABEL_PACKET, + "Ignoring request with AE=0 and non-zero Plen"); + goto done; + } /* If a neighbour is requesting a full route dump from us, we might as well send it an IHU. */ send_ihu(neigh, NULL); |
