Skip to content

Commit

Permalink
Merge pull request #16233 from T-Nicolas/patch-1
Browse files Browse the repository at this point in the history
ripd/ripd.c - rip_auth_md5 : Change the start value of sequence 1 to 0
  • Loading branch information
ton31337 authored Jul 1, 2024
2 parents 0ed2b5a + 1a64fe4 commit 0995964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ripd/ripd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0995964

Please sign in to comment.