Merge pull request #16319 from FRRouting/mergify/bp/stable/10.0/pr-16233

ripd/ripd.c - rip_auth_md5 : Change the start value of sequence 1 to 0 (backport #16233)
This commit is contained in:
Russ White 2024-07-02 07:59:41 -04:00 committed by GitHub
commit f5a29e09f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1051,7 +1051,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);