diff options
Diffstat (limited to 'net/sctp/tsnmap.c')
-rw-r--r-- | net/sctp/tsnmap.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/sctp/tsnmap.c b/net/sctp/tsnmap.c index ac4fae161bc7..42d9498c64fa 100644 --- a/net/sctp/tsnmap.c +++ b/net/sctp/tsnmap.c | |||
@@ -401,13 +401,14 @@ __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map) | |||
401 | 401 | ||
402 | /* Refresh the gap ack information. */ | 402 | /* Refresh the gap ack information. */ |
403 | if (sctp_tsnmap_has_gap(map)) { | 403 | if (sctp_tsnmap_has_gap(map)) { |
404 | __u16 start, end; | ||
404 | sctp_tsnmap_iter_init(map, &iter); | 405 | sctp_tsnmap_iter_init(map, &iter); |
405 | while (sctp_tsnmap_next_gap_ack(map, &iter, | 406 | while (sctp_tsnmap_next_gap_ack(map, &iter, |
406 | &map->gabs[gabs].start, | 407 | &start, |
407 | &map->gabs[gabs].end)) { | 408 | &end)) { |
408 | 409 | ||
409 | map->gabs[gabs].start = htons(map->gabs[gabs].start); | 410 | map->gabs[gabs].start = htons(start); |
410 | map->gabs[gabs].end = htons(map->gabs[gabs].end); | 411 | map->gabs[gabs].end = htons(end); |
411 | gabs++; | 412 | gabs++; |
412 | if (gabs >= SCTP_MAX_GABS) | 413 | if (gabs >= SCTP_MAX_GABS) |
413 | break; | 414 | break; |