Commit 1026ffaf authored by Jon Grimm's avatar Jon Grimm

[SCTP] Fix typo in tsnmap.c (Norbert Kiesel)

parent 0c706540
...@@ -250,7 +250,7 @@ int sctp_tsnmap_next_gap_ack(const struct sctp_tsnmap *map, ...@@ -250,7 +250,7 @@ int sctp_tsnmap_next_gap_ack(const struct sctp_tsnmap *map,
/* The Gap Ack Block happens to end at the end of the /* The Gap Ack Block happens to end at the end of the
* overflow map. * overflow map.
*/ */
if (started & !ended) { if (started && !ended) {
ended++; ended++;
_end = map->len + map->len - 1; _end = map->len + map->len - 1;
} }
...@@ -395,7 +395,7 @@ void sctp_tsnmap_renege(struct sctp_tsnmap *map, __u32 tsn) ...@@ -395,7 +395,7 @@ void sctp_tsnmap_renege(struct sctp_tsnmap *map, __u32 tsn)
return; return;
if (!TSN_lt(tsn, map->base_tsn + map->len + map->len)) if (!TSN_lt(tsn, map->base_tsn + map->len + map->len))
return; return;
/* Assert: TSN is in range. */ /* Assert: TSN is in range. */
gap = tsn - map->base_tsn; gap = tsn - map->base_tsn;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment