diff options
author | harryreps <harryreps@gmail.com> | 2023-03-04 00:17:14 +0100 |
---|---|---|
committer | harryreps <harryreps@gmail.com> | 2023-03-04 00:19:33 +0100 |
commit | ae1e0e1fed77716bc06f181ad68c4433fb5523d0 (patch) | |
tree | 8dc0cfe59e051e86686cf4abe2cbb966d0645d1f /babeld | |
parent | Merge pull request #12935 from opensourcerouting/ospf6d-la-bit (diff) | |
download | frr-ae1e0e1fed77716bc06f181ad68c4433fb5523d0.tar.xz frr-ae1e0e1fed77716bc06f181ad68c4433fb5523d0.zip |
babeld: fix #11808 to avoid infinite loops
Replacing continue in loops to goto done so that index of packet buffer
increases.
Signed-off-by: harryreps <harryreps@gmail.com>
Diffstat (limited to 'babeld')
-rw-r--r-- | babeld/message.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/babeld/message.c b/babeld/message.c index 687f76844..b5c2a5898 100644 --- a/babeld/message.c +++ b/babeld/message.c @@ -422,7 +422,7 @@ parse_packet(const unsigned char *from, struct interface *ifp, debugf(BABEL_DEBUG_COMMON, "Received Hello from %s on %s that does not have all 0's in the unused section of flags, ignoring", format_address(from), ifp->name); - continue; + goto done; } /* @@ -434,7 +434,7 @@ parse_packet(const unsigned char *from, struct interface *ifp, debugf(BABEL_DEBUG_COMMON, "Received Unicast Hello from %s on %s that FRR is not prepared to understand yet", format_address(from), ifp->name); - continue; + goto done; } DO_NTOHS(seqno, message + 4); @@ -452,7 +452,7 @@ parse_packet(const unsigned char *from, struct interface *ifp, debugf(BABEL_DEBUG_COMMON, "Received hello from %s on %s should be ignored as that this version of FRR does not know how to properly handle interval == 0", format_address(from), ifp->name); - continue; + goto done; } changed = update_neighbour(neigh, seqno, interval); |