Merge pull request #18473 from zmw12306/Request-TLV

babeld: Missing Validation for AE=0 and Plen!=0
This commit is contained in:
Donald Sharp 2025-03-24 10:29:36 -04:00 committed by GitHub
commit d736350986
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);