diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-06-27 12:18:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 12:18:20 +0200 |
commit | a21d361169107477e9b13d305fc763b887263450 (patch) | |
tree | 4fc1d6b5a95a9209e628e90058460285db75312d /babeld | |
parent | Merge pull request #13722 from fdumontet6WIND/color_extcomm (diff) | |
parent | babeld: add AE!=0 check when type is 7 or 10. (diff) | |
download | frr-a21d361169107477e9b13d305fc763b887263450.tar.xz frr-a21d361169107477e9b13d305fc763b887263450.zip |
Merge pull request #13672 from zmw12306/AE_zero
babeld: add AE!=0 check when type is 7 or 10.
Diffstat (limited to 'babeld')
-rw-r--r-- | babeld/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/babeld/message.c b/babeld/message.c index d4ddebff0..f8549329c 100644 --- a/babeld/message.c +++ b/babeld/message.c @@ -556,7 +556,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; @@ -731,7 +731,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], |