]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ripd: Change the start value of sequence 1 to 0
authorT-Nicolas <github@toselli.email>
Mon, 17 Jun 2024 13:05:58 +0000 (15:05 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Mon, 1 Jul 2024 17:37:51 +0000 (17:37 +0000)
Signed-off-by: T-Nicolas <github@toselli.email>
(cherry picked from commit 1a64fe4254759245a67fb279d67478922e00255e)

ripd/ripd.c

index 7bfcaadc74cc0fd411a6128173954dfc2f3c1197..4bac1fdf11519e37d2c1b2126af7015f7ffe234e 100644 (file)
@@ -1045,7 +1045,7 @@ static size_t rip_auth_md5_ah_write(struct stream *s, struct rip_interface *ri,
        /* RFC2080: The value used in the sequence number is
           arbitrary, but two suggestions are the time of the
           message's creation or a simple message counter. */
-       stream_putl(s, ++seq);
+       stream_putl(s, seq++);
 
        /* Reserved field must be zero. */
        stream_putl(s, 0);