babeld: add AE!=0 check when type is 7 or 10.

Signed-off-by: zmw12306 <zmw12306@gmail.com>
This commit is contained in:
zmw12306 2023-06-02 15:55:36 -04:00
parent 9b96394d05
commit 2178d131b9

View File

@ -493,7 +493,7 @@ parse_packet(const unsigned char *from, struct interface *ifp,
int rc;
rc = network_address(message[2], message + 4, len - 2,
nh);
if(rc < 0) {
if(rc <= 0) {
have_v4_nh = 0;
have_v6_nh = 0;
goto fail;
@ -644,7 +644,7 @@ parse_packet(const unsigned char *from, struct interface *ifp,
DO_NTOHS(seqno, message + 4);
rc = network_prefix(message[2], message[3], 0,
message + 16, NULL, len - 14, prefix);
if(rc < 0) goto fail;
if(rc <= 0) goto fail;
plen = message[3] + (message[2] == 1 ? 96 : 0);
debugf(BABEL_DEBUG_COMMON,"Received request (%d) for %s from %s on %s (%s, %d).",
message[6],